summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/models/mfile.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/application/models/mfile.php b/application/models/mfile.php
index f992a0891..fe762d954 100644
--- a/application/models/mfile.php
+++ b/application/models/mfile.php
@@ -21,6 +21,8 @@ class Mfile extends CI_Model {
static $id_blacklist = NULL;
if ($id_blacklist == NULL) {
+ // This prevents people from being unable to access their uploads
+ // because of URL rewriting
$id_blacklist = scandir(FCPATH);
$id_blacklist[] = "file";
$id_blacklist[] = "user";