From eb2eb66d6882b2ad12f42e8df9b3462f8a72456f Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Tue, 16 Jan 2018 10:10:34 +0100 Subject: [PATCH] Fix form link, to avoid "not allowed" message in fill survey BT#13870 --- main/survey/fillsurvey.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/main/survey/fillsurvey.php b/main/survey/fillsurvey.php index fd47cbb5d8..44d404781a 100755 --- a/main/survey/fillsurvey.php +++ b/main/survey/fillsurvey.php @@ -383,14 +383,11 @@ if ($survey_data['form_fields'] != '' && } } - // We use the same form as in auth/profile.php - $form = new FormValidator( - 'profile', - 'post', - api_get_self()."?".api_get_cidreq().'&' - .str_replace('&show_form=1', '&show_form=1', Security::remove_XSS($_SERVER['QUERY_STRING'])) - ); + $url = api_get_self().'?cidReq='.$courseInfo['code'].'&id_session='.$sessionId.'&'. + str_replace('&show_form=1', '&show_form=1', Security::remove_XSS($_SERVER['QUERY_STRING'])); + // We use the same form as in auth/profile.php + $form = new FormValidator('profile', 'post', $url); if (api_is_western_name_order()) { if (isset($list['firstname']) && $list['firstname'] == 1) { //FIRST NAME