Changeset 4198


Ignore:
Timestamp:
09/07/2009 09:16:52 PM (5 years ago)
Author:
alfonsoml
Message:

Add protection for folder creation in PHP #2936

Location:
FCKeditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/_whatsnew.html

    r4002 r4198  
    9191                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/3925">#3925</a>] Removed obsolete 
    9292                        parentWindow reference from FCKDialog.OpenDialog().</li> 
     93                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2936">#2936</a>] Added protection  
     94                        in the PHP upload if the destination folder is placed at the root and doesn't exit .</li> 
    9395        </ul> 
    9496        <p> 
  • FCKeditor/trunk/editor/filemanager/connectors/php/io.php

    r3815 r4198  
    9999 
    100100        // Check if the parent exists, or create it. 
    101         if ( !file_exists( $sParent ) ) 
     101        if ( !empty($sParent) && !file_exists( $sParent ) ) 
    102102        { 
    103103                //prevents agains infinite loop when we can't create root folder 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy