Commit 8f95eac1 authored by Committed by Eloy Lafuente (stronk7)Browse files
MDL-52727 mod_data: Improve output of the form fields values
This issue mostly affects the search form fields. Submitted values for these fields are typically obtained via optional_param() with PARAM_NOTAGS specified as the parameter type - see parse_search_field() methods. Such values themselves are not safe enough to be printed back directly into the HTML as they might contain malicious code. While working on the patch, some other places with weak protection were detected and fixed. In case of the itemid parameters, the s() seems to be unnecessary but it was added anyway as an extra protection (just in case the code flow changes or the parts of the code are re-used elsewhere).
Showing with 12 additions and 12 deletions