From e0867836399e1f5d66f926bd11395abdeb3199ae Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 15 Mar 2023 16:28:02 +0000 Subject: [PATCH] wait #5795 @1 --- inc/ws/Util/html5/master/class.ws.html5.seo.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inc/ws/Util/html5/master/class.ws.html5.seo.php b/inc/ws/Util/html5/master/class.ws.html5.seo.php index f07c60d60..12e34329b 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.seo.php +++ b/inc/ws/Util/html5/master/class.ws.html5.seo.php @@ -34,7 +34,10 @@ class wsHTML5Seo foreach ($a as $item) { $page = $item['page'] + $offsetPage; - $item['url'] = CubeIT_Text::removeAccents($item['url']); + $item['url'] = trim(CubeIT_Text::removeAccents($item['url'])," '"); + if (!$item['url']) { + continue; + } foreach ($item as $k => $v) { if ($k == 'page') { continue; @@ -278,7 +281,7 @@ class wsHTML5SeoPage } $html = str_replace('', $base, $html); - $dir = wsBook::getDir( $this->_container->compiler->book_id,'seo'); + $dir = wsBook::getDir($this->_container->compiler->book_id, 'seo'); if (!file_exists($dir)) { mkdir($dir, 0777, true); } -- 2.39.5