]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/DB.php
Merge branch 'housenumber-zero' of https://github.com/mtmail/Nominatim into mtmail...
[nominatim.git] / lib / DB.php
index fe2529b2173d5e9226e6bf2f0e22ab88abe8c56b..e4aa4349dbf7dc4a55fd43417a0ff62448aadc36 100644 (file)
@@ -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';