diff --git a/oertliche.php b/oertliche.php index 94a56da..64e8ecf 100644 --- a/oertliche.php +++ b/oertliche.php @@ -72,7 +72,7 @@ function lookupCaller($number) { header('Content-Type: text/xml; charset=utf-8'); echo "\r\n\r\n"; -if (isset($_GET['hm']) && is_numeric($_GET['hm'])) { +if (isset($_GET['hm']) && preg_match('/^\d+$/', $_GET['hm'])) { $caller = lookupCaller($_GET['hm']); if (is_array($caller)) printResponse($caller);