diff --git a/asset.php b/asset.php index 2ed1192..65a8ae6 100644 --- a/asset.php +++ b/asset.php @@ -39,7 +39,7 @@ if ( isset($_GET['action']) ) { header("Location: asset.php"); } else if ( $action == "clear" and $asset ) { clearCacheFileASSET($asset); - header("Location: asset.php?asset=".$asset.""); + header("Location: asset.php?asset=".urlencode($asset)); } } @@ -49,9 +49,9 @@ if ( $asset ) { $start = time() - $hours*3600; $end = time(); - $title = "AS-Stats | History for AS-SET: ".$asset; + $title = "AS-Stats | History for AS-SET: ".htmlentities($asset); $header = 'History for AS-SET'; - $header_small = $asset; + $header_small = htmlentities($asset); $select_form = ""; $aslist = getASSET($asset); @@ -191,11 +191,11 @@ if ( $asset ) { } else { $aff_astable .= '