summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/dashboard.inc.php2
-rw-r--r--inc/dictionary.inc.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/inc/dashboard.inc.php b/inc/dashboard.inc.php
index 13d713bb..e8c20dee 100644
--- a/inc/dashboard.inc.php
+++ b/inc/dashboard.inc.php
@@ -63,7 +63,7 @@ class Dashboard
if ($category === false) {
return '';
}
- if (!preg_match('/^(\w+)\.(\w+)$/', $category, $out)) {
+ if (!preg_match('/^(\w+)\.(.*)$/', $category, $out)) {
error_log('Requested category icon for invalid category "' . $category . '"');
return '';
}
diff --git a/inc/dictionary.inc.php b/inc/dictionary.inc.php
index 5679c52d..f5886bda 100644
--- a/inc/dictionary.inc.php
+++ b/inc/dictionary.inc.php
@@ -104,7 +104,7 @@ class Dictionary
if ($category === false) {
return 'No Category';
}
- if (!preg_match('/^(\w+)\.(\w+)$/', $category, $out)) {
+ if (!preg_match('/^(\w+)\.(.*)$/', $category, $out)) {
return 'Invalid Category ID format: ' . $category;
}
$string = self::translateFileModule($out[1], 'categories', $out[2]);