Check that we passed in a remote, and the remote is a valid user.
Patch by fu.
diffs (12 lines):
diff -r 138f3a485251 -r 431678cf7880 cgi-bin/LJ/Tags.pm
--- a/cgi-bin/LJ/Tags.pm Mon Jun 21 17:31:26 2010 +0800
+++ b/cgi-bin/LJ/Tags.pm Mon Jun 21 19:14:41 2010 +0800
@@ -290,7 +290,7 @@ sub get_usertags {
# now if they provided a remote, remove the ones they don't want to see;
note that
# remote may be undef so we have to check exists
- if ( exists $opts->{remote} ) {
+ if ( exists $opts->{remote} && LJ::isu( $opts->{remote} ) ) {
# never going to cull anything if you control it, so just return
return $res if $opts->{remote}->can_manage( $u );
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog