From:             webmaster at acecoolco dot com
Operating system: Linux
PHP version:      4.3.3
PHP Bug Type:     Unknown/Other Function
Bug description:  Backslash \ is removed with eval

Description:
------------
Ive finally traced this bug.

If you have a page generated with EVAL

Ok, I have a form, when you submit it, it adds code to mysql database, it
works, but using EVAL, it removes \s

I saw the other bug report saying highlight_string removes the
backslashes, this is NOT the case.
sites using EVAL, eval removes the backslash, vbb uses eval, it removes
the \ on submission.
I used to use eval, it removed the backslash on submit.

Reproduce code:
---------------
$patterns[] = "/{ACWB_DISPLAYPAGELOADTIME}/"; $contents[] =
"$DisplayPageLoadTime";

$Template_IT = @preg_replace($patterns, $contents, $string);
echo $Template_IT;

// I have taken out Eval due to possible security flaws...
/* @eval("?>" .  $Template_IT . "<?"); */

Expected result:
----------------
Nothing, its just a small snippet

Actual result:
--------------
.

-- 
Edit bug report at http://bugs.php.net/?id=26569&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26569&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26569&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26569&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26569&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26569&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=26569&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=26569&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26569&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26569&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26569&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26569&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26569&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26569&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26569&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26569&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26569&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26569&r=float

Reply via email to