aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-29 16:20:40 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-29 16:20:40 +0000
commit118051aadcf348d6b225a437a4df3b077f413cbe (patch)
tree3d555c43d54dc7b5d580bf1c4058b380de0c044e
parenta73249a6bb731f16b454bf77105aedf5fa561b1a (diff)
downloadelgg-118051aadcf348d6b225a437a4df3b077f413cbe.tar.gz
elgg-118051aadcf348d6b225a437a4df3b077f413cbe.tar.bz2
Fix for make_file_matrix
git-svn-id: https://code.elgg.org/elgg/trunk@563 36083f99-b078-4883-b0ff-0f9b5a30f544
-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;
}