Changeset 281 for trunk/lib


Ignore:
Timestamp:
Oct 12, 2007 6:40:28 AM (17 years ago)
Author:
quinn
Message:

Removed escapeString from the printing of the sort order string. This string should contain raw-sql and quoting it can break things.

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/SortOrder.inc.php

    r247 r281  
    143143
    144144        if (!empty($this->_columns[mb_strtolower($this->sort_by)][mb_strtolower($this->order)])) {
    145             return sprintf(' ORDER BY %s ', $db->escapeString($this->_columns[mb_strtolower($this->sort_by)][mb_strtolower($this->order)]));
     145            return sprintf(' ORDER BY %s ', $this->_columns[mb_strtolower($this->sort_by)][mb_strtolower($this->order)]);
    146146        } else {
    147147            $app->logMsg(sprintf('Could not find SQL to sort by %s %s.', $this->sort_by, $this->order), LOG_WARNING, __FILE__, __LINE__);
  • trunk/lib/Validator.inc.php

    r279 r281  
    206206        $app =& App::getInstance();
    207207       
     208        if ('' == trim($val)) {
     209            // Don't be too bothered about empty strings.
     210            return true;
     211        }
     212
    208213        $timestamp = strtotime($val);
    209214        // Return values change between php4 and php5.
Note: See TracChangeset for help on using the changeset viewer.