Message Text |
ver 3.13
I see this error in my errorlog
PHP Parse error: parse error in /home/jwalling/public_html/wsnlinks_nz/commonfuncs.php(336) : eval()'d code on line 545
I haven't been able to catch the error by observing the debug messages.
The php code involved is
function decodeit($item, $full = '')
{
if (is_numeric($item) || $item == '') { return $item; }
$item = str_replace(';', ';', $item);
$item = str_replace('}', '}', $item);
$item = str_replace('{', '{', $item);
$item = str_replace('>', '>', $item);
$item = str_replace('<', '<', $item);
$item = str_replace('"', """, $item); <========= Line 545
$item = stripslashes($item);
if ($full != '') $item = str_replace("'", "'",$item);
$item = str_replace('"', '"', $item);
$item = str_replace("'", "'", $item);
return $item;
}
See the text link for a CLEAN copy of the PHP code above.
http://www.fulgeo.com/wsnlinks_nz/_archive/decodeit.txt
If I could trap the error with the $item value, I would have a better handle. How can I do that? |