bug in addslashes command?
| From: | Merlin | Date: | Tue, 22 Jul 2003 19:49:02 +0000 |
| Subject: | bug in addslashes command? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-156302@lists.php.net to get a copy of this message | ||
Hello there,
I am running php 4.2.1 on a linux machine. Not sure, but I think there might
be a bug in there.
While putting data into the db I do get an error in a verry rar case. All
values are escaped by addslashes commands.
This is the original string:
the 'capitol-' of Kefalonia
This is the string after addslashes:
the \'capitol\-' of Kefalonia
Which leaves the last ' unescaped.
Am I wrong, or is this a bug? Anny suggestions?
Thanx for any help,
Merlin