Permalink
Browse files

Fix apache handling of ~/user/tags

  • Loading branch information...
1 parent 3803585 commit 3493642b6f7e4bcdceaaaa9cf09cc9ae71b11b29 @tvroom tvroom committed Nov 20, 2008
Showing with 8 additions and 3 deletions.
  1. +8 −3 Slash/Apache/User/User.pm
View
@@ -956,11 +956,16 @@ sub userdir_handler {
} elsif ($op eq 'tags') {
if ($saveuri =~ m[^/(?:%5[eE]|\^)(.+)] || $constants->{u2}) {
- my $args = "nick=$nick&dp=usertag&uid=$uid";
- $args .= "&tagname=$extra" if $extra;
- $r->args($args);
$r->uri('/users2.pl');
$r->filename($constants->{basedir} . '/users2.pl');
+ my $args;
+ if ($extra) {
+ my $args = "nick=$nick&dp=usertag&uid=$uid";
+ $args .= "&tagname=$extra" if $extra;
+ } else {
+ $args = "op=userinfo&uid=$uid&nick=$nick&dp=tags";
+ }
+ $r->args($args);
} else {
my $args = "op=showtags&nick=$nick&uid=$uid";
# XXX "!" is a 'reserved' char in URI, escape it here?

0 comments on commit 3493642

Please sign in to comment.