Changeset 30950


Ignore:
Timestamp:
Feb 12, 2015, 3:32:33 PM (9 years ago)
Author:
plg
Message:

bug 3201 fixed: check plugin identifier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/plugin.php

    r26461 r30950  
    4646
    4747$plugin_id = $sections[0];
     48
     49if (!preg_match('/^\w+$/', $plugin_id))
     50{
     51  die('Invalid plugin identifier');
     52}
     53
    4854if ( !isset($pwg_loaded_plugins[$plugin_id]) )
    4955{
Note: See TracChangeset for help on using the changeset viewer.