diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/filestore.php | 6 |
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; } |