]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
loosen strictness of sorting xss fix a bit - did not work anymore
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Wed, 28 Oct 2009 22:31:15 +0000 (22:31 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Wed, 28 Oct 2009 22:31:15 +0000 (22:31 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@462 b3834d28-1941-0410-a4f8-b48e95affb8f

src/SemanticScuttle/functions.php

index 145600a257ae9d042004a196691bd226b3d6b453..d21a094a9a6e0965151194fef36863acc925e663 100644 (file)
@@ -49,7 +49,7 @@ function getSortOrder($override = NULL) {
        global $defaultOrderBy;
 
        if (isset($_GET['sort'])) {
-               return preg_replace('/[^a-z]/', '', $_GET['sort']);
+               return preg_replace('/[^a-z_]/', '', $_GET['sort']);
        } else if (isset($override)) {
                return $override;
        } else {