diff --git a/index.php b/index.php index d7dc174..2fe9874 100644 --- a/index.php +++ b/index.php @@ -125,14 +125,15 @@ echo ""; if($_GET['ip'] != '') { - if ( preg_match("#/#", $_GET['ip']) == 0) { - if ( preg_match("#:#", $_GET['ip']) == 0) { - $_GET['ip'] = $_GET['ip'] . "/32"; + $ipaddr = $_GET['ip']; + if ( preg_match("#/#", $ipaddr) == 0) { + if ( preg_match("#:#", $ipaddr) == 0) { + $ipaddr = $ipaddr . "/32"; } else { - $_GET['ip'] = $_GET['ip'] . "/128"; + $ipaddr = $ipaddr . "/128"; } } - echo '

Wege zu '.$_GET["ip"].'

'; + echo '

Wege zu '.$ipaddr.'

'; echo ' @@ -143,7 +144,7 @@ '; foreach($output['routes'] as $route) { - if ($route['target'] == $_GET['ip']) { + if ($route['target'] == $ipaddr) { echo ""; foreach($route as $temp) { echo ""; } echo "";
targetDestination ID
$temp