Project

General

Profile

Actions

Bug #27761

closed

adodb doesn't quote simple quotes correctly

Added by Anonymous over 13 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-06-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The adodb drivers are very cool and stuff but there are some problems with the quoting of parameters. For example, everytime you put a simple quote ( ' ) into a parameter, the string is wrong quoted <<<<<<<and the query parsing throws an error.

This happens with dbal using adodb driver mssql and, as far as I have seen it, it might fail for every other driver too where the "replaceString" isn't defined properly.

Currently the replaceString for the mssql driver and mssqlnative driver is '' (two simple quotes). This should be replaced by \'\' (two escaped double quotes) I think.

Greets

Tizian

Actions

Also available in: Atom PDF