diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-08-26 10:29:19 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-08-26 10:29:19 +0200 |
commit | 0eac1afbfcac819df65253478138374667f9b8df (patch) | |
tree | 9b7e64f8d57e51f4984d7eb87a04b602ef13a479 /inc/fulltext.php | |
parent | fd49f8df8d347af8d355ec7b8cb2261a17e2ae5c (diff) | |
download | rpg-0eac1afbfcac819df65253478138374667f9b8df.tar.gz rpg-0eac1afbfcac819df65253478138374667f9b8df.tar.bz2 |
code to remove bad UTF-8 bytes added
This adds code to remove or replace invalid UTF-8 bytes and uses it
in the ft_snippets function.
darcs-hash:20060826082919-7ad00-a94004de159ae93ff5b7270fd3e631ff467233cd.gz
Diffstat (limited to 'inc/fulltext.php')
-rw-r--r-- | inc/fulltext.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/fulltext.php b/inc/fulltext.php index 3943bdae4..de1a4217b 100644 --- a/inc/fulltext.php +++ b/inc/fulltext.php @@ -305,7 +305,7 @@ switch ($algorithm) { break; } - return $snippet; + return utf8_bad_replace($snippet); } /** |