Changeset 1290

Show
Ignore:
Timestamp:
05/15/08 16:36:52 (5 months ago)
Author:
donncha
Message:

No need to encode strings sent to log file

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/wp-db.php

    r1279 r1290  
    234234                        return false; 
    235235 
    236                 $str = htmlspecialchars($str, ENT_QUOTES); 
    237                 $query = htmlspecialchars($this->last_query, ENT_QUOTES); 
    238  
    239236                // If there is an error then take note of it 
    240                 $msg = "WordPress database error: [$str]\n$query\n"; 
     237                $msg = "WordPress database error: [$str]\n{$this->query}\n"; 
    241238                if( defined( 'ERRORLOGFILE' ) ) 
    242239                        error_log( $msg, 3, CONSTANT( 'ERRORLOGFILE' ) ); 
    243                 else 
    244                         error_log( $msg, 0 ); 
    245240                if( defined( 'DIEONDBERROR' ) ) 
    246241                        die( $msg );