Fixes after merge

This commit is contained in:
Olivier PEREZ 2015-04-07 23:17:26 +02:00
parent 663f08f607
commit 8b3eaac717
5 changed files with 8 additions and 273 deletions

View file

@ -43,7 +43,7 @@ $pollService = new PollService($connect, $logService);
/* ---- */
if (!empty($_GET['poll'])) {
$poll_id = filter_input(INPUT_GET, 'poll', FILTER_VALIDATE_REGEXP, ['options' => ['regexp' => '/^[a-z0-9]+$/']]);
$poll_id = filter_input(INPUT_GET, 'poll', FILTER_VALIDATE_REGEXP, ['options' => ['regexp' => POLL_REGEX]]);
$poll = $pollService->findById($poll_id);
}