Permalink
Browse files

#2083 - Sanitize data from module.info files.

  • Loading branch information...
1 parent 5e19662 commit 57d12c69a87bbc2057f5f513f425e8b0d6588b87 @shadlaws shadlaws committed Sep 6, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 modules/gallery/helpers/module.php
@@ -93,6 +93,10 @@ static function available() {
$module_name = basename(dirname($file));
$modules->$module_name =
new ArrayObject(parse_ini_file($file), ArrayObject::ARRAY_AS_PROPS);
+ foreach ($modules->$module_name as &$value) {
+ $value = html::purify($value);
+ }
+
$m =& $modules->$module_name;
$m->installed = module::is_installed($module_name);
$m->active = module::is_active($module_name);

0 comments on commit 57d12c6

Please sign in to comment.