From 773f518bd37f313a754969c7f1539fb8ce92c4ba Mon Sep 17 00:00:00 2001 From: Stephan Bauer Date: Thu, 7 Sep 2017 22:10:00 +0200 Subject: [PATCH 1/2] Do no longer remove trailing slash from URLs #12 --- code/ExternalURLField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ExternalURLField.php b/code/ExternalURLField.php index 2b9eb06..3fff96c 100644 --- a/code/ExternalURLField.php +++ b/code/ExternalURLField.php @@ -152,7 +152,7 @@ protected function rebuildURL($url) } } - return rtrim(http_build_url($defaults, $parts), "/"); + return http_build_url($defaults, $parts); } /** From 29e34b338bf268220f4628167ff7baaf398e4c0e Mon Sep 17 00:00:00 2001 From: Stephan Bauer Date: Fri, 8 Sep 2017 14:55:25 +0200 Subject: [PATCH 2/2] Do no longer remove trailing slash from URLs in Nice --- code/ExternalURL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ExternalURL.php b/code/ExternalURL.php index 7a41c95..9e723a8 100644 --- a/code/ExternalURL.php +++ b/code/ExternalURL.php @@ -27,7 +27,7 @@ public function Nice() unset($parts[$part]); } - return rtrim(http_build_url($parts), "/"); + return http_build_url($parts); } }