Skip to content
Snippets Groups Projects
Commit e6a213bb authored by ale's avatar ale
Browse files

Only debug auth_cookie_malformed when non-empty

parent eb9183ed
No related branches found
No related tags found
No related merge requests found
Pipeline #49260 passed
...@@ -9,7 +9,9 @@ ...@@ -9,7 +9,9 @@
**/ **/
function debug_login_auth_cookie_malformed($cookie, $scheme) { function debug_login_auth_cookie_malformed($cookie, $scheme) {
error_log("LOGIN: auth_cookie_malformed: scheme={$scheme} cookie={$cookie}"); if ($cookie) {
error_log("LOGIN: auth_cookie_malformed: scheme={$scheme} cookie={$cookie}");
}
} }
add_action('auth_cookie_malformed', 'debug_login_auth_cookie_malformed', 10, 2); add_action('auth_cookie_malformed', 'debug_login_auth_cookie_malformed', 10, 2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment