2007-02-25, 07:52 AM
Ok..well I found a bug that's driving me crazy. While it seemingly only effects Opera users I figure I should report it nonetheless.
\xa0\xa0
While using my inline_ads I saw a bug today...after 2 hours I tracked it down to those character being inserted when the settings form is saved in Opera. Those are XSL stylesheet malformed data that gets inputed in the form. I am not sure why it only effects Opera but it does.
I am trying to fix it or narrow it down further. I can only assume this bug is a problem for other form data as well.
Ok..I am narrowing it down further to this function
It is the str_replace of the dual spaces that seem to be the big issue.
\xa0\xa0
While using my inline_ads I saw a bug today...after 2 hours I tracked it down to those character being inserted when the settings form is saved in Opera. Those are XSL stylesheet malformed data that gets inputed in the form. I am not sure why it only effects Opera but it does.
I am trying to fix it or narrow it down further. I can only assume this bug is a problem for other form data as well.
Ok..I am narrowing it down further to this function
function htmlspecialchars_uni($message)
{
$message = preg_replace("#&(?!\#[0-9]+;)#si", "&", $message); // Fix & but allow unicode
$message = str_replace("<","<",$message);
$message = str_replace(">",">",$message);
$message = str_replace("\"",""",$message);
$message = str_replace(" ", " ", $message);
return $message;
}
It is the str_replace of the dual spaces that seem to be the big issue.