I sometimes use user data in php function header
like this :
header('Location : test' . $user_data);
I used to remove \n
and \r
to prevent header injection but is there any other new lines characters ? I wrote Location
in my example, but it can be something else, I know I have to validate and sanitize URL, my question is about new lines in header.