PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Bug Tracker (http://www.phpdig.net/forum/forumdisplay.php?f=27)
-   -   Cleanup Engine Bug and Fix (http://www.phpdig.net/forum/showthread.php?t=622)

Charter 03-08-2004 10:35 AM

Cleanup Engine Bug and Fix
 
Hi. If you are using a charset other than ISO-8859-1 or ISO-8859-2 then cleanup_engine.php basically deletes any word that doesn't start with a [0-9a-zßðþ] character. To fix this do the following.

In cleanup_engine.php replace
Code:

//explore keywords to find bad values
$query = "SELECT key_id FROM ".PHPDIG_DB_PREFIX."keywords
WHERE twoletters REGEXP \"^[^0-9a-zßðþ]\"";

with the following:
Code:

//explore keywords to find bad values
$query = "SELECT key_id FROM ".PHPDIG_DB_PREFIX."keywords
WHERE twoletters REGEXP \"^[^".$phpdig_words_chars[PHPDIG_ENCODING]."#$]\"";

Remember to remove any "word" wrapping in the above code.


All times are GMT -8. The time now is 03:45 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.