From d1ec540b9f00e05398c4bfb7d9b4acffa8b27c95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20gjesdal?= <oyvind@localhost.localdomain> Date: Thu, 29 Oct 2020 13:48:07 +0100 Subject: [PATCH] remove missing eregi_replace with preg_replace --- classes/modules/uriModule.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/modules/uriModule.php b/classes/modules/uriModule.php index 79e8df20..520a044d 100644 --- a/classes/modules/uriModule.php +++ b/classes/modules/uriModule.php @@ -21,8 +21,8 @@ class UriModule extends abstractModule{ $pair = Queries::getMetadata($localUri, $acceptContentType, $metaDb); #Stripping html to look up and write correct url in database if not exists #Fix to handle pages that have not been loaded after cleaning out database - $localUri_stripped = eregi_replace("^(.+)\.html", "\\1", $localUri); - $uri_stripped = eregi_replace("^(.+)\.html", "\\1", $uri); + $localUri_stripped = preg_replace("^(.+)\.html", "\\1", $localUri); + $uri_stripped = preg_replace("^(.+)\.html", "\\1", $uri); if($pair == NULL){ // Original URI is not in metadata if(Queries::uriExist($uri_stripped, $endpoints['local'])){ $page = Queries::createPage($uri_stripped, $localUri_stripped, $acceptContentType, $metaDb); -- GitLab