Permalink
Browse files

#2083 - Sanitize data from module.info files.

  • Loading branch information...
shadlaws committed Sep 6, 2013
1 parent 14627b7 commit 26ac565c37ce09a538fdf05847c5892017662b54
Showing with 4 additions and 0 deletions.
  1. +4 −0 modules/gallery/classes/Gallery/Module.php
@@ -109,6 +109,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 = Purifier::clean_html($value);
+ }
+
$m =& $modules->$module_name;
$m->installed = Module::is_installed($module_name);
$m->active = Module::is_active($module_name);

0 comments on commit 26ac565

Please sign in to comment.