Changeset 6654 for trunk/plugins


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

Bug 1755 : Needs single quotes in queries official plugins

Location:
trunk/plugins
Files:
2 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}
  • trunk/plugins/c13y_upgrade/initialize.inc.php

    r6641 r6654  
    4848  upper('.$conf['user_fields']['email'].')
    4949having count(*) > 1
    50 limit 0,1
     50limit 1
    5151;';
    5252
Note: See TracChangeset for help on using the changeset viewer.