summaryrefslogtreecommitdiff
path: root/inc/load.php
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2012-09-09 13:01:11 +0200
committerMichael Hamann <michael@content-space.de>2012-09-09 13:01:11 +0200
commitbaf1d9a01127509f8f14cf4b6754a9eea0f1277a (patch)
tree08ec28e4ba09986752bd5d5678965292c91096c3 /inc/load.php
parente9e762792aaa754e29c2ecbbd088b60f75b7d674 (diff)
downloadrpg-baf1d9a01127509f8f14cf4b6754a9eea0f1277a.tar.gz
rpg-baf1d9a01127509f8f14cf4b6754a9eea0f1277a.tar.bz2
Less restrictive plugin name checking
This partially reverts de50cad65ae679a602e71adddffdd74df7ea3fbb as the strict check breaks existing plugins and this shouldn't be changed without prior discussion and a warning for plugin authors with some time to adjust their plugins. Now all characters that are valid in PHP class names except "_" are allowed.
Diffstat (limited to 'inc/load.php')
-rw-r--r--inc/load.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/load.php b/inc/load.php
index 57295bd8a..8df68d1b3 100644
--- a/inc/load.php
+++ b/inc/load.php
@@ -95,7 +95,7 @@ function load_autoload($name){
}
// Plugin loading
- if(preg_match('/^(helper|syntax|action|admin|renderer|remote)_plugin_([a-z0-9]+)(?:_([^_]+))?$/',
+ if(preg_match('/^(helper|syntax|action|admin|renderer|remote)_plugin_([a-zA-Z0-9\x7f-\xff]+)(?:_([^_]+))?$/',
$name, $m)) {
// try to load the wanted plugin file
$c = ((count($m) === 4) ? "/{$m[3]}" : '');