Changeset 19652


Ignore:
Timestamp:
12/29/12 23:19:31 (7 years ago)
Author:
julien1311
Message:

bug fixes

Location:
extensions/File_Uploader
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/File_Uploader/main.inc.php

    r19478 r19652  
    1515define('FILE_UPLOADER_DIR' , basename(dirname(__FILE__))); 
    1616define('FILE_UPLOADER_PATH' , PHPWG_PLUGINS_PATH.FILE_UPLOADER_DIR.'/'); 
    17 define('FILE_UPLOADER_ADMIN',   get_root_url() . 'admin.php?page=plugin-File_Uploader'); 
     17define('FILE_UPLOADER_ADMIN',   get_root_url() . 'admin.php?page=plugin-'.FILE_UPLOADER_DIR); 
    1818define('FILE_UPLOADER_PDF2TAB_PATH' , FILE_UPLOADER_PATH.'pdf2tab/'); 
    1919 
  • extensions/File_Uploader/maintain.inc.php

    r19472 r19652  
    55        include(dirname(__FILE__).'/config_default.inc.php'); 
    66 
    7         $query = 'INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("file_uploader" ,"'.addslashes(serialize($config_default)).'", "File Uploader plugin parameters");'; 
     7        $query = 'INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("file_uploader" ,"'.pwg_db_real_escape_string(serialize($config_default)).'", "File Uploader plugin parameters");'; 
    88        pwg_query($query); 
    99} 
Note: See TracChangeset for help on using the changeset viewer.