Commit 94a17f53 authored by Francois Marier's avatar Francois Marier Committed by Gerrit Code Review
Browse files

Merge "Use a more appropriate sanitiser for the height variable"

parents 3fb9009f c2b78c65
......@@ -51,7 +51,7 @@ class PluginBlocktypeGoogleApps extends SystemBlocktype {
$apps = self::make_apps_url($configdata['appsid']);
$url = hsc($apps['url']);
$type = hsc($apps['type']);
$height = (!empty($configdata['height'])) ? hsc($configdata['height']) : self::$default_height;
$height = (!empty($configdata['height'])) ? intval($configdata['height']) : self::$default_height;
if (isset($configdata['appsid'])) {
$smarty = smarty_core();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment