summaryrefslogtreecommitdiff
path: root/inc/pluginutils.php
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2012-09-10 12:40:01 +0200
committerMichael Hamann <michael@content-space.de>2012-09-10 12:40:01 +0200
commit7521090b08245f81410c713f00d3d7fbaf1afda6 (patch)
tree465c3f2854ac868bca6bcb6651e2eb218704eb2f /inc/pluginutils.php
parent30c1351e814dcc13497a61f65fa05a0901d5436a (diff)
downloadrpg-7521090b08245f81410c713f00d3d7fbaf1afda6.tar.gz
rpg-7521090b08245f81410c713f00d3d7fbaf1afda6.tar.bz2
Move plugin name regex to a constant as suggested by @glensc
Diffstat (limited to 'inc/pluginutils.php')
-rw-r--r--inc/pluginutils.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/pluginutils.php b/inc/pluginutils.php
index 53cfedf82..7c37d4f7f 100644
--- a/inc/pluginutils.php
+++ b/inc/pluginutils.php
@@ -8,6 +8,8 @@
// plugin related constants
if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
+// note that only [a-z0-9]+ is officially supported, this is only to support plugins that don't follow these conventions, too
+if(!defined('DOKU_PLUGIN_NAME_REGEX')) define('DOKU_PLUGIN_NAME_REGEX', '[a-zA-Z0-9\x7f-\xff]+');
/**
* Original plugin functions, remain for backwards compatibility