mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-12-25 04:58:59 +00:00
Escape security questions and answers
This commit is contained in:
parent
179ac1e4ea
commit
addd9f55e8
@ -208,10 +208,10 @@ class SettingsController {
|
||||
//Create a security settings object and fill it with the new information
|
||||
$settings = new SecuritySettings();
|
||||
$settings->set_id(userID);
|
||||
$settings->set_security_question_1(postString("security_question_1", 0));
|
||||
$settings->set_security_answer_1(postString("security_answer_1", 0));
|
||||
$settings->set_security_question_2(postString("security_question_2", 0));
|
||||
$settings->set_security_answer_2(postString("security_answer_2", 0));
|
||||
$settings->set_security_question_1(removeHTMLnodes(postString("security_question_1", 0)));
|
||||
$settings->set_security_answer_1(removeHTMLnodes(postString("security_answer_1", 0)));
|
||||
$settings->set_security_question_2(removeHTMLnodes(postString("security_question_2", 0)));
|
||||
$settings->set_security_answer_2(removeHTMLnodes(postString("security_answer_2", 0)));
|
||||
|
||||
//Try to update settings
|
||||
if(!components()->settings->save_security($settings))
|
||||
|
Loading…
Reference in New Issue
Block a user