mirror of
https://github.com/moodle/moodle.git
synced 2025-02-25 20:43:33 +01:00
This was always bad, but since we only used it to verify the existence of the param, and let library code take $_REQUEST for the real validation, it was ok. Now, since we're redirecting to self during necessary cookie checks added by MDL-80835, we lose the real value originally stored in $_REQUEST. This patch just fixes the param type, setting it to raw, which is what it should have used originally. The raw value won't be cast from a string to an int as part of the require_param call, so the value won't be lost any more.