Changeset 30951


Ignore:
Timestamp:
02/12/15 15:35:42 (4 years ago)
Author:
plg
Message:

merge r30950 from trunk to branch 2.7

bug 3201 fixed: check plugin identifier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/admin/plugin.php

    r26461 r30951  
    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.