We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3c6972 commit 936ccd4Copy full SHA for 936ccd4
ajax/question_update.php
@@ -29,6 +29,8 @@
29
* ---------------------------------------------------------------------
30
*/
31
32
+use Glpi\Toolbox\Sanitizer;
33
+
34
include ('../../../inc/includes.php');
35
Session::checkRight('entity', UPDATE);
36
@@ -57,4 +59,4 @@
57
59
http_response_code(500);
58
60
exit();
61
}
-echo json_encode(['name' => $question->fields['name']], JSON_UNESCAPED_UNICODE);
62
+echo json_encode(['name' => Sanitizer::unsanitize($question->fields['name'])], JSON_UNESCAPED_UNICODE);
0 commit comments