SMF Development > Fixed or Bogus Bugs
error encoding
Inter:
I removed all censorship of speech and file .htaccess and the problem with censorship disappeared :D
Inter:
:-\
--- Code: ---2: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: invalid UTF-8 string at offset 0
--- End code ---
find:
--- Code: --- // Censoring isn't so very complicated :P.
$text = preg_replace($censor_vulgar, $censor_proper, $text);
return $text;
--- End code ---
replace:
--- Code: --- // Censoring isn't so very complicated :P.
$old_text = $text;
if (!$text = @preg_replace($censor_vulgar, $censor_proper, $text))
return $old_text;
else
return $text;
--- End code ---
:)
emanuele:
That silence the error, but doesn't fix the problem...that I still have no idea where it is...
Navigation
[0] Message Index
[*] Previous page
Go to full version