Question

I just switched an old oscommerce installation from mysql_ to mysqli_ (by changing database.php files/functions). Some SELECT statements that previously returned: <p>Bla bla <br /> blah</p> now return _p_Bla bla _br __ blah_/p_

does anyone have a quick fix, or do i need to dig deeper?

Was it helpful?

Solution 2

found it:

old function did:

return trim(stripslashes($string));

new function includes:

return trim(tep_sanitize_string(stripslashes($string)));

the sanitize function included preg_replace("/[<>]/", '_', $string);

OTHER TIPS

mysql query replaces absolutely nothing
So, you have to dig deeper, into your own code that does whatever replacements, and take them out

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top