You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello to all, we've enabled gitbuh action to check for tainted code in our codebase. We got a lot of errors and iam trying to fix them but i cant find out how to do it for one specific case.
We ahve this method where $referrer string is coming from $_GET attribute
I understand that $_GET has to be sanitized or escaped. I tried used filter_var with SANITIZE_STRING everywhere. Directly in for each $_GET, then also added in that setCookie method for each variable and stil iam getting Tainted cookie.
Can anyone help me to understand when the Psalm is happy? I kind of have feeling that string needs to be handled differently?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello to all, we've enabled gitbuh action to check for tainted code in our codebase. We got a lot of errors and iam trying to fix them but i cant find out how to do it for one specific case.
We ahve this method where $referrer string is coming from $_GET attribute
Here is code where we call method above.
I understand that $_GET has to be sanitized or escaped. I tried used filter_var with SANITIZE_STRING everywhere. Directly in for each $_GET, then also added in that
setCookie
method for each variable and stil iam getting Tainted cookie.Can anyone help me to understand when the Psalm is happy? I kind of have feeling that string needs to be handled differently?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions