Pergunta

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?

Foi útil?

Solução 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);

Outras dicas

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top