Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-mw committed Jul 8, 2022
1 parent d35e691 commit 79c6914
Showing 1 changed file with 14 additions and 2 deletions.
Expand Up @@ -87,14 +87,24 @@
if (isset($_GET['autosize'])) {
$autoSize = $_GET['autosize'];
}
$autoSize = xss_clean($autoSize);
$autoSize = intval($autoSize);

$type = '';
if (isset($_GET['type'])) {
$type = $_GET['type'];
}
$type = xss_clean($type);

$other = [
';',
'\'',
'//',
'`',
'\\',

];
$type = str_replace($other, '', $type);

$mod_id = $mod_orig_id = false;
$is_linked_mod = false;

Expand All @@ -108,6 +118,8 @@
if ($mod_id != $mod_orig_id) {
$is_linked_mod = true;
}


?>

<script type="text/javascript">
Expand All @@ -124,7 +136,7 @@
addIcon();

autoSize = <?php print $autoSize; ?>;
settingsType = '<?php print $type; ?>';
settingsType = '<?php print htmlentities($type); ?>';

window.onbeforeunload = function () {
$(document.body).addClass("mw-external-loading")
Expand Down

0 comments on commit 79c6914

Please sign in to comment.