X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b54fca4f7ee7aec899689c7561d5ee86535a2c40..3b22b9911b12048f6a2dadefa442cb1f1c7edd3d:/lib/DB.php?ds=sidebyside diff --git a/lib/DB.php b/lib/DB.php index fe2529b2..e4aa4349 100644 --- a/lib/DB.php +++ b/lib/DB.php @@ -284,7 +284,7 @@ class DB { // https://secure.php.net/manual/en/ref.pdo-pgsql.connection.php $aInfo = array(); - if (preg_match('/^pgsql:(.+)/', $sDSN, $aMatches)) { + if (preg_match('/^pgsql:(.+)$/', $sDSN, $aMatches)) { foreach (explode(';', $aMatches[1]) as $sKeyVal) { list($sKey, $sVal) = explode('=', $sKeyVal, 2); if ($sKey == 'host') $sKey = 'hostspec';