Commit 88fb6166 authored by Thomas De Backer's avatar Thomas De Backer Committed by Thomas Citharel
Browse files

restrict custom urls

fixed coding standard issues

added error message to locale

Remove unecessary variable
Signed-off-by: default avatarThomas Citharel <>
parent 59569071
......@@ -112,6 +112,9 @@ if ($goToStep2) {
} else if ($pollRepository->existsById($customized_url)) {
$error_on_customized_url = true;
$error_on_customized_url_msg = __('Error', 'Poll id already used');
} else if (in_array($customized_url, ['admin', 'vote', 'action'], true)) {
$error_on_customized_url = true;
$error_on_customized_url_msg = __('Error', 'This id is not allowed');
......@@ -150,6 +150,7 @@
"The name is invalid.": "The name is invalid.",
"The name you've chosen already exist in this poll!": "The name you've chosen already exists in this poll!",
"There is a problem with your choices": "There is a problem with your choices",
"This id is not allowed": "This id is not allowed",
"This poll doesn't exist !": "This poll doesn't exist!",
"Update vote failed": "Update vote failed",
"You already voted": "You already voted",
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment