loosen strictness of sorting xss fix a bit - did not work anymore

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@462 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
cweiske 2009-10-28 22:31:15 +00:00
parent cadcca8d6a
commit 483e9f0747

View file

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