diff --git a/engines/ahmia/hidden_service.php b/engines/ahmia/hidden_service.php index 4786980..a547078 100644 --- a/engines/ahmia/hidden_service.php +++ b/engines/ahmia/hidden_service.php @@ -23,6 +23,7 @@ array ( "title" => $title ? htmlspecialchars($title) : "No description provided", "url" => htmlspecialchars($url), + // base_url is to be removed in the future, see #47 "base_url" => htmlspecialchars(get_base_url($url)), "description" => htmlspecialchars($description) ) diff --git a/engines/invidious/video.php b/engines/invidious/video.php index c4c5d0e..a5ac593 100644 --- a/engines/invidious/video.php +++ b/engines/invidious/video.php @@ -23,6 +23,7 @@ array ( "title" => htmlspecialchars($title), "url" => htmlspecialchars($url), + // base_url is to be removed in the future, see #47 "base_url" => htmlspecialchars(get_base_url($url)), "uploader" => htmlspecialchars($uploader), "views" => htmlspecialchars($views), @@ -43,7 +44,7 @@ $title = $result["title"]; $url = $result["url"]; $url = check_for_privacy_frontend($url, $opts); - $base_url = $result["base_url"]; + $base_url = get_base_url($url); $uploader = $result["uploader"]; $views = $result["views"]; $date = $result["date"]; diff --git a/engines/text/duckduckgo.php b/engines/text/duckduckgo.php index 0d814e8..3ee4a9f 100644 --- a/engines/text/duckduckgo.php +++ b/engines/text/duckduckgo.php @@ -50,6 +50,7 @@ array ( "title" => htmlspecialchars($title->textContent), "url" => htmlspecialchars($url), + // base_url is to be removed in the future, see #47 "base_url" => htmlspecialchars(get_base_url($url)), "description" => $description == null ? "No description was provided for this site." : diff --git a/engines/text/google.php b/engines/text/google.php index 280a4c5..814eb47 100644 --- a/engines/text/google.php +++ b/engines/text/google.php @@ -61,6 +61,7 @@ array ( "title" => htmlspecialchars($title->textContent), "url" => htmlspecialchars($url), + // base_url is to be removed in the future, see #47 "base_url" => htmlspecialchars(get_base_url($url)), "description" => $description == null ? "No description was provided for this site." : diff --git a/engines/text/text.php b/engines/text/text.php index 57c2f33..e665f7c 100644 --- a/engines/text/text.php +++ b/engines/text/text.php @@ -104,7 +104,7 @@ $url = $result["url"]; $url = check_for_privacy_frontend($url, $opts); - $base_url = $result["base_url"]; + $base_url = get_base_url($url); $description = $result["description"]; echo "
";