Skip to content
  • David Mudrák's avatar
    MDL-52727 mod_data: Improve output of the form fields values · 8f95eac1
    David Mudrák authored and Eloy Lafuente's avatar Eloy Lafuente committed
    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).
    8f95eac1