X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FEmailRegistration%2FEmailRegistrationPlugin.php;fp=plugins%2FEmailRegistration%2FEmailRegistrationPlugin.php;h=488380a39e5a5d138470d62c90c460f143e8b906;hb=165d9fd9dea881e4fd7c6df0fa033b3de6c29764;hp=306806c7d6250cfe08c1dceec7a91e3357b456d8;hpb=7cc4c97aa91f5012a83c73ff0760794087fe4d21;p=quix0rs-gnu-social.git diff --git a/plugins/EmailRegistration/EmailRegistrationPlugin.php b/plugins/EmailRegistration/EmailRegistrationPlugin.php index 306806c7d6..488380a39e 100644 --- a/plugins/EmailRegistration/EmailRegistrationPlugin.php +++ b/plugins/EmailRegistration/EmailRegistrationPlugin.php @@ -70,8 +70,13 @@ class EmailRegistrationPlugin extends Plugin { static $toblock = array('main/register', 'main/register/:code'); - if (in_array($path, $toblock) && $defaults['action'] != 'emailregister') { - return false; + if (in_array($path, $toblock)) { + common_debug("Request came in for $path"); + if ($defaults['action'] != 'emailregister') { + common_debug("Action is {$default['action']}, so: rejected."); + $result = false; + return false; + } } return true;