Commit c2b78c65 authored by Melissa Draper's avatar Melissa Draper Committed by Francois Marier
Browse files

Use a more appropriate sanitiser for the height variable



Change-Id: I2a2ba2a54de22fb82c36ffd8ca807f7e237ceff1
Signed-off-by: default avatarMelissa Draper <melissa@catalyst.net.nz>
parent 0fa57e16
......@@ -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