mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #06462
[Bug 868851] Re: get_all_theme_objects and directory starts with dot
Patch added without hard tabs and comments
** Patch added: "Patch added without hard tabs and comments"
https://bugs.launchpad.net/mahara/+bug/868851/+attachment/2515786/+files/get_all_theme_objects%20and%20directory%20with%20dot.patch
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/868851
Title:
get_all_theme_objects and directory starts with dot
Status in Mahara ePortfolio:
New
Bug description:
We use subversion and under each sub-directory of Mahara a directory
called .svn is created by it.
The logic in the function get_all_theme_objects and $subdir != "." &&
$subdir != ".." doesn't skip .svn directory which generates [WAR] 09
(lib/mahara.php:639) The name of the theme '.svn' contains invalid
characters.
I have modified the logic as if (substr($subdir, 0, 1) != "." &&
is_dir($themebase . $subdir)) which solves the issue - ignores all
directories with dot and double dots.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/868851/+subscriptions
References