[Slashdotjp-dev 1225] [753] Fix redirect bug

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 9月 17日 (水) 16:45:26 JST


Revision: 753
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=753
Author:   tach
Date:     2008-09-17 16:45:26 +0900 (Wed, 17 Sep 2008)

Log Message:
-----------
Fix redirect bug

Modified Paths:
--------------
    slashjp/branches/2.5.0.192/Slash/Apache/Apache.pm


-------------- next part --------------
Modified: slashjp/branches/2.5.0.192/Slash/Apache/Apache.pm
===================================================================
--- slashjp/branches/2.5.0.192/Slash/Apache/Apache.pm	2008-09-17 07:06:11 UTC (rev 752)
+++ slashjp/branches/2.5.0.192/Slash/Apache/Apache.pm	2008-09-17 07:45:26 UTC (rev 753)
@@ -370,13 +370,16 @@
 		} elsif (defined($qs->{nick})) {
 			$qs->{nick} =~ s/\+/%20/g;
 			redirect("$constants->{absolutedir}/~$qs->{nick}/journal/rss", 301);
+			return DONE;
 		} elsif (defined($qs->{type}) && $qs->{type} eq 'count' || $qs->{type} eq 'friends') {
 			# not impremented (2008-09-16, tach)
 		} else {
 			redirect("$constants->{absolutedir}/journals/rss", 301);
+			return DONE;
 		}
 	} elsif ($r->the_request =~ m!\bcontent_type=rss\b! && $uri =~ m!/~([^/]+)/journal!i) {
 		redirect("$constants->{absolutedir}/~".URI::Escape::uri_escape($1)."/journal/rss", 301);
+		return DONE;
 	}
 
 	# return shtml internally when AC


Slashdotjp-dev メーリングリストの案内
Back to archive index