From: Sarah Hoffmann Date: Wed, 5 Dec 2018 20:40:52 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/master' X-Git-Tag: deploy~302 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/414e6f089fc361ac22e28227be2d34a256226505?ds=inline;hp=-c Merge remote-tracking branch 'upstream/master' --- 414e6f089fc361ac22e28227be2d34a256226505 diff --combined CMakeLists.txt index 7c5763fd,7d401ade..8f9de5ec --- a/CMakeLists.txt +++ b/CMakeLists.txt @@@ -93,8 -93,7 +93,7 @@@ message (STATUS "Using PHP binary " ${P # #----------------------------------------------------------------------------- - set(CUSTOMFILES - settings/phrase_settings.php + set(WEBSITESCRIPTS website/deletable.php website/details.php website/hierarchy.php @@@ -103,31 -102,31 +102,47 @@@ website/reverse.php website/search.php website/status.php - website/403.html - website/509.html - website/crossdomain.xml - website/favicon.ico - website/last_update.php - website/nominatim.xml - website/robots.txt - website/taginfo.json - utils/blocks.php + ) + ++set(WEBSITEFILES ++ 403.html ++ 509.html ++ crossdomain.xml ++ favicon.ico ++ last_update.php ++ nominatim.xml ++ robots.txt ++ taginfo.json ++) ++ + set(CUSTOMSCRIPTS utils/country_languages.php utils/importWikipedia.php utils/export.php utils/query.php - utils/server_compare.php utils/setup.php utils/specialphrases.php utils/update.php utils/warm.php ) - foreach (cfile ${CUSTOMFILES}) - configure_file(${PROJECT_SOURCE_DIR}/${cfile} ${PROJECT_BINARY_DIR}/${cfile}) + foreach (script_source ${CUSTOMSCRIPTS}) + configure_file(${PROJECT_SOURCE_DIR}/cmake/script.tmpl + ${PROJECT_BINARY_DIR}/${script_source}) endforeach() - configure_file(${PROJECT_SOURCE_DIR}/settings/defaults.php ${PROJECT_BINARY_DIR}/settings/settings.php) + foreach (script_source ${WEBSITESCRIPTS}) + configure_file(${PROJECT_SOURCE_DIR}/cmake/website.tmpl + ${PROJECT_BINARY_DIR}/${script_source}) + endforeach() + ++foreach (webfile ${WEBSITEFILES}) ++ configure_file(${PROJECT_SOURCE_DIR}/website/${webfile} ++ ${PROJECT_BINARY_DIR}/website/${webfile}) ++endforeach() ++ + configure_file(${PROJECT_SOURCE_DIR}/settings/defaults.php + ${PROJECT_BINARY_DIR}/settings/settings.php) set(WEBPATHS css images js) diff --combined lib/lib.php index 37ef5e19,39462ae3..3a6166a6 --- a/lib/lib.php +++ b/lib/lib.php @@@ -68,7 -68,7 +68,7 @@@ function javascript_renderData($xVal, $ throw new Exception('Invalid json_callback value', 400); } - $iOptions |= JSON_UNESCAPED_UNICODE; + $iOptions |= JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES; if (isset($_GET['pretty']) && in_array(strtolower($_GET['pretty']), array('1', 'true'))) { $iOptions |= JSON_PRETTY_PRINT; } @@@ -177,10 -177,10 +177,10 @@@ function geometryText2Points($geometry_ // preg_match_all('/(-?[0-9.]+) (-?[0-9.]+)/', $aMatch[1], $aPolyPoints, PREG_SET_ORDER); // - } elseif (preg_match('#MULTIPOLYGON\\(\\(\\(([- 0-9.,]+)#', $geometry_as_text, $aMatch)) { +/* } elseif (preg_match('#MULTIPOLYGON\\(\\(\\(([- 0-9.,]+)#', $geometry_as_text, $aMatch)) { // preg_match_all('/(-?[0-9.]+) (-?[0-9.]+)/', $aMatch[1], $aPolyPoints, PREG_SET_ORDER); - // + */ } elseif (preg_match('#POINT\\((-?[0-9.]+) (-?[0-9.]+)\\)#', $geometry_as_text, $aMatch)) { // $aPolyPoints = createPointsAroundCenter($aMatch[1], $aMatch[2], $fRadius); diff --combined utils/update.php index a5170ae5,24095ef4..05c43946 mode 100755,100644..100644 --- a/utils/update.php +++ b/utils/update.php @@@ -1,7 -1,5 +1,5 @@@ - #!@PHP_BIN@ -Cq