Home » Database » DB » Bug #4513
oci8.php line 577 str_replace wrong parameter
Details
| Submitted | 2005-06-02 14:41 UTC |
|---|---|
| From | torsten dot kerwien at gmx dot net |
| Assigned | danielc |
| Status | Bogus |
| Package | DB |
| PHP Version | 4.3.10 |
| OS | linux |
| Roadmaps | (Not assigned) |
Comments
[2005-06-02 14:41 UTC] torsten dot kerwien at gmx dot net
Description:
------------
The ' escape doesen't work.
Reproduce code:
---------------
this line should escape ' to ''
$data[$key] = str_replace("''", "'", $data[$key]);
but to escape ' right you have to change this line to:
$data[$key] = str_replace("'", "''", $data[$key]);
[2005-09-02 21:02 UTC] torsten dot roehr at gmx dot de
There is no file oci8.php in the HTTP_Session package.
[2005-09-02 21:22 UTC] torsten dot kerwien at gmx dot net
The Error is in the DB Package
Description:
------------
The ' escape doesen't work.
Reproduce code:
---------------
this line should escape ' to ''
$data[$key] = str_replace("''", "'", $data[$key]);
but to escape ' right you have to change this line to:
$data[$key] = str_replace("'", "''", $data[$key]);