Dotclear


Ignore:
Timestamp:
01/08/13 16:33:39 (13 years ago)
Author:
Dsls <dsls@…>
Branch:
default
Message:

media files should be escaped when importing flat files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/importExport/inc/flat/class.flat.import.php

    r841 r1093  
    790790          $strReq = 'SELECT media_id '. 
    791791                    'FROM '.$this->prefix.'media '. 
    792                     "WHERE media_path = '".$this->cur_media->media_path."' ". 
    793                     "AND media_file = '".$this->cur_media->media_file."' "; 
     792                    "WHERE media_path = '".$this->con->escape($this->cur_media->media_path)."' ". 
     793                    "AND media_file = '".$this->con->escape($this->cur_media->media_file)."' "; 
    794794           
    795795          $rs = $this->con->select($strReq); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map