summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-06-09 21:23:42 -0700
committerBharat Mediratta <bharat@menalto.com>2010-06-09 21:23:42 -0700
commit6556ca88339c78824f3de64c85a57e30a679431c (patch)
tree2a904add574418c20a4f75d90111da83aab48feb /modules
parentaff0f6eca85e1a9aec83e13c29746f58010a56f6 (diff)
In GalleryCodeFilterIterator::accept(), ignore . and .., and stop caring about .svn
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/tests/Gallery_Filters.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gallery/tests/Gallery_Filters.php b/modules/gallery/tests/Gallery_Filters.php
index 4e32553b..debbe846 100644
--- a/modules/gallery/tests/Gallery_Filters.php
+++ b/modules/gallery/tests/Gallery_Filters.php
@@ -28,8 +28,10 @@ class GalleryCodeFilterIterator extends FilterIterator {
public function accept() {
// Skip anything that we didn"t write
$path_name = $this->getInnerIterator()->getPathName();
+ $file_name = $this->getInnerIterator()->getFileName();
return !(
- strpos($path_name, ".svn") ||
+ $file_name == "." ||
+ $file_name == ".." ||
strpos($path_name, DOCROOT . "test") !== false ||
strpos($path_name, DOCROOT . "var") !== false ||
strpos($path_name, MODPATH . "forge") !== false ||