PHP 4.0 Bug #9156 Updated: stripslashes doesn't work as expected
| From: | nirf at sphera dot com | Date: | Thu, 08 Feb 2001 08:50:05 +0000 |
| Subject: | PHP 4.0 Bug #9156 Updated: stripslashes doesn't work as expected | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46011@lists.php.net to get a copy of this message | ||
ID: 9156
User Update by: nirf@sphera.com
Status: Open
Bug Type: Scripting Engine problem
Description: stripslashes doesn't work as expected
when using preg_replace all seems like addslashes had been processed on the string found in \\1 so
if the programmer had already did addslashes on the string before preg_replace he gets \\1 after
double addslashes which results in strings \" change to \\"
this might confuse users, and it might be added to the manual that all strings transfered to \\1 are
escape (addslashes) by default.
Previous Comments:
---------------------------------------------------------------------------
[2001-02-07 12:40:07] nirf@sphera.com
when doing addslashes() to a string and then doing stripslashes() doesn't remove all occurance
of single or double qoutes.
this is the string :
<TD><?=$Data_Source_Values["aliases"]->node[$i]['destination']?></TD>
<TD
a'><?=$Data_Source_Values['aliases']->node[$i]['type']?></TD>
<TD><?=$Data_Source_Values['alias']->node[$i]['alias"sds]?></TD>
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=9156