Skip to content
Permalink
Browse files

narrowed w3w mapsearch regex; updates #710

  • Loading branch information...
following5 committed May 25, 2015
1 parent 40511db commit 0a02baaae3df3e3f088e6fe567ede097e0dc403a
Showing with 1 addition and 1 deletion.
  1. +1 −1 htdocs/map2.php
@@ -398,7 +398,7 @@ function output_namesearch($sName, $nLat, $nLon, $nResultId)
}
sql_free_result($rs);
if (!$caches_found && preg_match('/^[^\s]{2,}\.[^\s]{2,}\.[^\s]{2,}$/', $sName))
if (!$caches_found && preg_match('/^[^\s[:punct:]]{2,}\.[^\s[:punct:]]{2,}\.[^\s[:punct:]]{2,}$/', $sName))
{
$result = @file_get_contents('http://api.what3words.com/w3w?key=' . $opt['lib']['w3w']['apikey']
. '&string=' . urlencode($sName));

0 comments on commit 0a02baa

Please sign in to comment.
You can’t perform that action at this time.