aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/filestore.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/filestore.php b/engine/lib/filestore.php
index a649bd303..c52599af5 100644
--- a/engine/lib/filestore.php
+++ b/engine/lib/filestore.php
@@ -208,8 +208,10 @@
if ($len>$this->matrix_depth)
$len = $this->matrix_depth;
- for ($n = 0; $n < $len; $n++)
- $matrix .= $filename[$n] . "/";
+ for ($n = 0; $n < $len; $n++) {
+ if (ctype_alnum($filename[$n]))
+ $matrix .= $filename[$n] . "/";
+ }
return $matrix;
}