note 101676 rejected from function.addslashes by danbrown
| From: | danbrown@php.net | Date: | Tue, 04 Jan 2011 14:50:06 +0000 |
| Subject: | note 101676 rejected from function.addslashes by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-175447@lists.php.net to get a copy of this message | ||
Note Submitter: phil dot allen at internode dot on dot net
----
An interesting 'bug' with addslashes.
echo stripslashes("\'201111\' AS DATE) CAST(");
returns
'201111' AS DATE# CAST#
(changes the brackets to #)
This is very specific to this string and works the same whether the string is passed into addslashes
as a variable or string literal.