← Back to team overview

mahara-contributors team mailing list archive

[Bug 868851] [NEW] get_all_theme_objects and directory starts with dot

 

Public bug reported:

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.

** Affects: mahara
     Importance: Undecided
         Status: New

-- 
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


Follow ups

References