[Plugin: Secure Invites for WordPress MU] redirection kills email validation
-
Hello,
For some reason my WP install (not MU) redirects wp-signup.php to wp-login.php?action=register — is that normal?
Anyway, this causes the plugin to not validate email addresses, since it checks the entire $_SERVER[“QUERY_STRING’] and in my case this string contains “?action=register” before the email.
I fixed this with a quick hack that works for me, inserting on line 115:
// hack if redirected to wp-login.php?action=register
if (substr_count($_SERVER[“QUERY_STRING”], “?”) > 0) {
$hack_query = explode(“?”, $_SERVER[“QUERY_STRING”]);
$hack_email = $hack_query[1];
if (secure_invites_is_valid_email($hack_email)) {
$valid = true;
$_POST[‘user_email’] = $hack_email;
}
}Maybe you want to generalize it somehow and include it in the source.
Cheers,
Karol
- The topic ‘[Plugin: Secure Invites for WordPress MU] redirection kills email validation’ is closed to new replies.