Closed (fixed)
Project:
Invite
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2007 at 17:46 UTC
Updated:
25 Feb 2007 at 15:46 UTC
Deleted invites are not being deleted and the quota is not being decremented. Also, would like to know how an individual's quota be increased?
Comments
Comment #1
qnstie commentedThe problem is in the fix of the extra EM's issue, that obviously must have gone a bit too far :)
The line 505 in function invite_delete($email) before was
$email = urldecode($email);
and now is:
$email = rawurldecode(urlencode($email));
The intention (I guess) was to deal with new tagging using '@' character, but unfortunately it also changes legitimate emails (from e.g. xyz@example.com to xyz%40example.com).
Changing the mentioned line back to the old form fixes that problem
The question (I do not know answer for) is - does it not cause some issues elsewhere?
BTW, also, in the function function _invite_settings() the tags like %site, %inviter etc. are still old. The line 144 should now read:
'#description' => t('Use the following placeholders; @site, @homepage, @join_link, @message, @inviter'),
I do not commit any changes to CVS, because I do not yet know how that works :)
Pawel
Comment #2
ajk commentedYou can't commit changes without a CVS account and even then you need the maintainer (me) to add you to thge project. Th enornal route rather than spelling it out liek you did is to supply a patch on this issue (attach as file). If it's ok, I'll commit the patch. That's how it works, random people don't just "commit" directly to CVS.
Please attach a patch and I'll get it applied. I'm afraid I don't have time right now to re-work it from your worded solution. Please note, if supplying a patch pleaes supply one for Drupal-5 and Drupal-4-7 is possible.
Cheers;
--Andy
Comment #3
ajk commentedhttp://drupal.org/diffandpatch
Please change the status from postponed to "patch (code needs review)" after posting patch. Thanks
Comment #4
mikemet commentedMade the changes to invite module and seem to work fine now. Many thanks.
Comment #5
ajk commentedhttp://drupal.org/cvs?commit=53950
Comment #6
gwen commentedI just installed this module and found I wasn't able to delete an invite. Some research dug up http://drupal.org/node/101208 (can't delete users with "+" in the email address). It looks like the fix for this bug backed those changes out. Any thoughts on a fix for the original issue?
Comment #7
ajk commentedhttp://drupal.org/node/101208 re-opened
Comment #8
triangleman85 commentedLine 505 in my invite.module file reads:
$email = urldecode($email); // $email = rawurldecode(urlencode($email));
I deleted the part after the first semicolon, so now it reads this:
$email = urldecode($email);
but I still can't delete someone who is listed as "joined."
Comment #9
triangleman85 commentedSry I had to reopen this so someone would pay attention.
Comment #10
triangleman85 commentedNevermind, I figured it out. Line 505 should read:
$email = urldecode($email); // $email = urldecode($email);
I'm easily confused by php.
Comment #11
(not verified) commented