Closed (fixed)
Project:
Buddylist2
Version:
5.x-1.x-dev
Component:
Buddy API
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
16 Feb 2008 at 16:05 UTC
Updated:
25 Mar 2008 at 10:31 UTC
Currently, although there's no link for it, the user can add himself to his own buddylist by typing in the url for adding a buddy and using his own uid. Perhaps the current user should be filtered out on the add user page.
Comments
Comment #1
nodestroy commentedif i try to do so i get following message (xxx.at/buddy/add/1)
if you call an api function (e.g. buddy_api_add), you can add yourself to buddylist. i think this should be filtered out by the userinterface (and actually it is filtered out by the userinterface).
maybe you are not working with the newest code?
regards
Comment #2
nodestroy commentedwith newest version definitely fixed
Comment #3
instantgeek commentedhum, you're right, just by typing it in it won't work. i had added this as a link in a view, and managed to add myself. so actually if you use something like
xxx/buddy/add/1%3Fdestination%3Duser/1
instead of
xxx/buddy/add/1?destination=user/1,
it should work.
Comment #4
nodestroy commentedi can´t see any differences at your two urls (except the urlencode)
Comment #5
instantgeek commentedbut for some reason the first one works. don't ask me why. did you try it?
Comment #6
nodestroy commentedComment #7
nodestroy commentedi found the problem:
1%3Fdestination%3Duser/1 is interpreted as argument, and i checked: if (currentuserid == argument).
now im using the loaded user, and it works ;)
you can get the file here:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/buddylist2/...
or in a few hours from project page (dev snapshot)
Comment #8
nodestroy commentedshould be fixed
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.