diff options
Diffstat (limited to 'includes/tablesort.inc')
-rw-r--r-- | includes/tablesort.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/tablesort.inc b/includes/tablesort.inc index 43edc5fc3..6be5a5540 100644 --- a/includes/tablesort.inc +++ b/includes/tablesort.inc @@ -51,8 +51,8 @@ function tablesort_pager() { function tablesort_sql($header, $before = '') { $ts = tablesort_init($header); if ($ts['sql']) { - $sql = check_query($ts['sql']); - $sort = strtoupper(check_query($ts['sort'])); + $sql = db_escape_string($ts['sql']); + $sort = strtoupper(db_escape_string($ts['sort'])); return " ORDER BY $before $sql $sort"; } } |