Ignore:
Timestamp:
Jul 3, 2010, 2:20:38 PM (14 years ago)
Author:
nikrou
Message:

Bug 1755 : Needs single quotes in queries official plugins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/LocalFilesEditor/maintain.inc.php

    r5196 r6654  
    2828  $query = '
    2929INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
    30 VALUES ("LocalFilesEditor" , "off" , "LocalFiles Editor plugin parameters");';
     30VALUES (\'LocalFilesEditor\' , \'off\' , \'LocalFiles Editor plugin parameters\');';
    3131
    3232  pwg_query($query);
     
    3737  global $prefixeTable;
    3838
    39   $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="LocalFilesEditor" LIMIT 1;';
     39  $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param=\'LocalFilesEditor\' LIMIT 1;';
    4040  pwg_query($query);
    4141}
Note: See TracChangeset for help on using the changeset viewer.