[9.0.16] pageId fix

This commit is contained in:
Fred 2019-04-02 09:23:39 +02:00 committed by GitHub
parent b74c86dfcd
commit 039312c031
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 {
}
}
}
}