$scorm->width = str_replace('%','',$scorm->width);\r
$scorm->height = str_replace('%','',$scorm->height);\r
\r
+ //sanitize submitted values a bit\r
+ $scorm->width = clean_param($scorm->width, PARAM_INT);\r
+ $scorm->height = clean_param($scorm->height, PARAM_INT);\r
+\r
$id = insert_record('scorm', $scorm);\r
\r
if (basename($scorm->reference) != 'imsmanifest.xml') {\r