summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshadlaws <shad@shadlaws.com>2013-09-06 08:36:09 +0200
committershadlaws <shad@shadlaws.com>2013-09-06 08:36:09 +0200
commit57d12c69a87bbc2057f5f513f425e8b0d6588b87 (patch)
tree95f925b01d7038736146b2212a13cebc654ec579
parent5e19662b75d87e719f751bf2c2b69d76e4fc3678 (diff)
#2083 - Sanitize data from module.info files.
-rw-r--r--modules/gallery/helpers/module.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery/helpers/module.php b/modules/gallery/helpers/module.php
index 1b6c8d1a..0e190e46 100644
--- a/modules/gallery/helpers/module.php
+++ b/modules/gallery/helpers/module.php
@@ -93,6 +93,10 @@ class module_Core {
$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);