ID:               26569
 Updated by:       [EMAIL PROTECTED]
 Reported By:      webmaster at acecoolco dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Unknown/Other Function
 Operating System: Linux
 PHP Version:      4.3.3
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.


Previous Comments:
------------------------------------------------------------------------

[2003-12-09 17:10:12] webmaster at acecoolco dot com

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 this bug report at http://bugs.php.net/?id=26569&edit=1

Reply via email to