문제

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?

도움이 되었습니까?

해결책 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);

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top