]> git.mjollnir.org Git - s9y.git/commitdiff
Tighter check for multi category names
authorgarvinhicking <garvinhicking>
Tue, 29 Jan 2008 19:11:04 +0000 (19:11 +0000)
committergarvinhicking <garvinhicking>
Tue, 29 Jan 2008 19:11:04 +0000 (19:11 +0000)
index.php

index a6563f6fb804e6ab257f65525168f8afded686b8..3d7dcfede180ad4ea775668820baac1c353a4d1e 100644 (file)
--- a/index.php
+++ b/index.php
@@ -404,8 +404,10 @@ if (preg_match(PAT_ARCHIVES, $uri, $matches) || isset($serendipity['GET']['range
         $serendipity['uriArguments'][]  = PATH_CATEGORIES;
         $serendipity['uriArguments'][]  = serendipity_db_escape_string($serendipity['GET']['category']) . '-multi';
     } elseif (preg_match('@/([0-9;]+)@', $uri, $multimatch)) {
-        $is_multicat = true;
-        $serendipity['GET']['category'] = $multimatch[1];
+        if (stristr($multimatch[1], ';')) {
+            $is_multicat = true;
+            $serendipity['GET']['category'] = $multimatch[1];
+        }
     }
 
     $serendipity['GET']['action'] = 'read';