Ignore:
Timestamp:
Apr 8, 2006 3:07:57 AM (18 years ago)
Author:
scdev
Message:

Changed all usage of addslashes to mysql_real_escape_quotes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1dev/lib/SortOrder.inc.php

    r81 r82  
    149149
    150150        if (!empty($this->_columns[strtolower($this->sort_by)][strtolower(strtolower($this->order))])) {
    151             return ' ORDER BY ' . addslashes($this->_columns[strtolower($this->sort_by)][strtolower(strtolower($this->order))]);
     151            return ' ORDER BY ' . mysql_real_escape_string($this->_columns[strtolower($this->sort_by)][strtolower(strtolower($this->order))]);
    152152        } else {
    153153            logMsg(sprintf('Could not find SQL to sort by %s %s.', $this->sort_by, $this->order), LOG_WARNING, __FILE__, __LINE__);
Note: See TracChangeset for help on using the changeset viewer.