mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 05:18:00 +00:00
fix syntax errors and update tests
Some of the tests with bad parameters now return a HTTP 400.
This commit is contained in:
@@ -100,7 +100,7 @@ INTERNALFAIL;
|
||||
{
|
||||
if (!isset($_GET[$sName])) return $bDefault;
|
||||
|
||||
if (!preg_match('/^[+-][0-9]+$/', $_GET[$sName]))
|
||||
if (!preg_match('/^[+-]?[0-9]+$/', $_GET[$sName]))
|
||||
{
|
||||
userError("Integer number expected for parameter '$sName'");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user