includes/search.php
changeset 371 dc6026376919
parent 340 993fb077944f
child 387 92664d2efab8
--- a/includes/search.php	Tue Jan 22 01:08:15 2008 -0500
+++ b/includes/search.php	Wed Jan 23 12:48:22 2008 -0500
@@ -75,7 +75,7 @@
       $words = explode(' ', $letters);
       foreach($words as $c => $w)
       {
-        if(strlen($w) < 2 || in_array($w, $stopwords) || strlen($w) > 63)
+        if(strlen($w) < 2 || in_array($w, $stopwords) || strlen($w) > 63 || preg_match('/[\']{2,}/', $w))
           unset($words[$c]);
         else
           $words[$c] = $w;