From 039312c031f9bf270cc9e20a12f17eaf40fd41f2 Mon Sep 17 00:00:00 2001 From: Fred <23246457+fredtempez@users.noreply.github.com> Date: Tue, 2 Apr 2019 09:23:39 +0200 Subject: [PATCH] [9.0.16] pageId fix --- core/module/page/page.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/module/page/page.php b/core/module/page/page.php index c7d3ffdd..fa2bfcd1 100755 --- a/core/module/page/page.php +++ b/core/module/page/page.php @@ -164,7 +164,7 @@ class page extends common { $pageId = $this->getInput('pageEditTitle', helper::FILTER_ID, true); // un dossier existe du même nom (erreur en cas de redirection) if (file_exists($pageId)) { - $pageId = 'p-' . $pageId; + $pageId = uniqid($pageId . '-'); } // Si l'id a changée if ($pageId !== $this->getUrl(2)) { @@ -318,4 +318,4 @@ class page extends common { } } -} \ No newline at end of file +}