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 .= '
'; $aff_astable .= '

Alert!

'; - $aff_astable .= 'No data for AS-SET ' . $asset . ''; + $aff_astable .= 'No data for AS-SET ' . htmlentities($asset) . ''; $aff_astable .= '
'; } // TOOLSBOX - $aff_toolsbox_add = ' Remove AS-SET cache file for '.$asset.'.'; + $aff_toolsbox_add = ' Remove AS-SET cache file for '.htmlentities($asset).'.'; } else { $title = "AS-Stats | View AS-SET"; $header = 'History for AS-SET'; @@ -252,7 +252,7 @@ $aff_toolsbox .= '';