mirror of
https://framagit.org/framasoft/framadate/framadate
synced 2026-01-23 02:14:06 +00:00
Don't allow ',' in slot labels
This commit is contained in:
parent
d17ba242d3
commit
892fa11373
1 changed files with 2 additions and 2 deletions
|
|
@ -394,12 +394,12 @@ if (isset($_GET['add_slot'])) {
|
|||
if (isset($_POST['confirm_add_slot'])) {
|
||||
if ($poll->format === 'D') {
|
||||
$newdate = strip_tags($_POST['newdate']);
|
||||
$newmoment = strip_tags($_POST['newmoment']);
|
||||
$newmoment = str_replace(',', '-', strip_tags($_POST['newmoment']));
|
||||
|
||||
$ex = explode('/', $newdate);
|
||||
$result = $adminPollService->addDateSlot($poll_id, mktime(0, 0, 0, $ex[1], $ex[0], $ex[2]), $newmoment);
|
||||
} else {
|
||||
$newslot = strip_tags($_POST['choice']);
|
||||
$newslot = str_replace(',', '-', strip_tags($_POST['choice']));
|
||||
$result = $adminPollService->addClassicSlot($poll_id, $newslot);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue