summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-02-20 19:39:18 +0100
committerDerek Jones <derek.jones@ellislab.com>2008-02-20 19:39:18 +0100
commitfd971781c4f4d1b436cc7b9efd2e409b7b400b88 (patch)
tree92c96c05b7b0e2f747c14e77eddff1d5d1836ea2
parent06935e610645384faf3d3897585ed4be668d4795 (diff)
modified get_filenames() to return FALSE if the directory cannot be read
-rw-r--r--system/helpers/file_helper.php4
-rw-r--r--user_guide/changelog.html4
2 files changed, 8 insertions, 0 deletions
diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php
index ef07de76c..0005c2a24 100644
--- a/system/helpers/file_helper.php
+++ b/system/helpers/file_helper.php
@@ -184,6 +184,10 @@ if (! function_exists('get_filenames'))
}
return $_filedata;
}
+ else
+ {
+ return $FALSE;
+ }
}
}
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index c245c73b5..072843e4c 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -92,6 +92,10 @@ Change Log
<li>Escaped the '-' in the default 'permitted_uri_chars' config item, to prevent errors if developers just try to add additional characters to the end of the default expression.</li>
</ul>
</li>
+ <li>Helpers
+ <ul>
+ <li>Modified get_filenames() in the File Helper to return FALSE if the $source_dir is not readable</li>
+ </li>
</ul>