core/lib/Drupal/Component/Utility/Html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Drupal/Component/Utility/Html.php b/core/lib/Drupal/Component/Utility/Html.php index 860a228..2ca9c67 100644 --- a/core/lib/Drupal/Component/Utility/Html.php +++ b/core/lib/Drupal/Component/Utility/Html.php @@ -432,7 +432,7 @@ public static function escape($text) { public static function transformRelativeUrlsToAbsolute($html, $base_url) { assert('isset(parse_url($base_url)["scheme"])', '$base_url is absolute and hence has a scheme.'); assert('isset(parse_url($base_url)["host"])', '$base_url is absolute and hence has a host.'); - assert('!isset(parse_url($base_url)["path"]) || substr(parse_url($base_url)["path"], -1, 1) !== "/")', '$base_url is absolute and can have a path, and if it does, it does not have a trailing slash.'); + assert('!isset(parse_url($base_url)["path"]) || substr(parse_url($base_url)["path"], -1, 1) !== "/"', '$base_url is absolute and can have a path, and if it does, it does not have a trailing slash.'); $html_dom = Html::load($html); $xpath = new \DOMXpath($html_dom);