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
wp_safe_redirect() should be used whenever possible to prevent open redirect vulnerabilities. One of the main uses of an open redirect vulnerability is to make phishing attacks more credible. In this case the user sees your (trusted) domain and might get redirected to an attacker controlled website aimed at stealing private information.
5
+
]]>
6
+
</standard>
7
+
<code_comparison>
8
+
<codetitle="Valid: Redirect can only go to allowed domains.">
9
+
<![CDATA[
10
+
<em>wp_safe_redirect</em>( $location );
11
+
]]>
12
+
</code>
13
+
<codetitle="Invalid: Unsafe redirect, can be abused.">
0 commit comments