[Slashdotjp-dev 1257] [785] * Fix "+" operation for "fixparam()"

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 10月 8日 (水) 15:42:34 JST


Revision: 785
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=785
Author:   tach
Date:     2008-10-08 15:42:34 +0900 (Wed, 08 Oct 2008)

Log Message:
-----------
 * Fix "+" operation for "fixparam()"
   - Change white-space to "%20" instead of "+" on fixparam()
   - Change "%20" to white-space on userdir_handler()
   - Not to change "+" to white-space on userdir_handler()

Modified Paths:
--------------
    slashjp/branches/2.5.0.192/Slash/Apache/User/User.pm
    slashjp/branches/2.5.0.192/Slash/Utility/Data/Data.pm
    slashjp/branches/2.5.0.192/debian/changelog


-------------- next part --------------
Modified: slashjp/branches/2.5.0.192/Slash/Apache/User/User.pm
===================================================================
--- slashjp/branches/2.5.0.192/Slash/Apache/User/User.pm	2008-10-07 04:43:09 UTC (rev 784)
+++ slashjp/branches/2.5.0.192/Slash/Apache/User/User.pm	2008-10-08 06:42:34 UTC (rev 785)
@@ -561,7 +561,7 @@
 	my $uri = $r->the_request;
 	$uri =~ s/^\S+\s+//;
 	$uri =~ s/\s+\S+$//;
-	$uri =~ s/\+/ /g;
+	$uri =~ s/%20/ /g;
 
 	my $logtoken;
 	if ($uri =~ s{(?:^|/)?(\d+(?::|%3[aA]){2}\w+)$}{}) {

Modified: slashjp/branches/2.5.0.192/Slash/Utility/Data/Data.pm
===================================================================
--- slashjp/branches/2.5.0.192/Slash/Utility/Data/Data.pm	2008-10-07 04:43:09 UTC (rev 784)
+++ slashjp/branches/2.5.0.192/Slash/Utility/Data/Data.pm	2008-10-08 06:42:34 UTC (rev 785)
@@ -2220,7 +2220,7 @@
 	no utf8;
 	Encode::is_utf8($url) and $url = Encode::encode_utf8($url);
 	$url =~ s/([^$URI::unreserved ])/$URI::Escape::escapes{$1}/og;
-	$url =~ s/ /+/g;
+	$url =~ s/ /%20/g;
 	return $url;
 }
 

Modified: slashjp/branches/2.5.0.192/debian/changelog
===================================================================
--- slashjp/branches/2.5.0.192/debian/changelog	2008-10-07 04:43:09 UTC (rev 784)
+++ slashjp/branches/2.5.0.192/debian/changelog	2008-10-08 06:42:34 UTC (rev 785)
@@ -1,3 +1,12 @@
+slash (2.5.0.192-21) unstable; urgency=low
+
+  * Fix "+" operation for "fixparam()"
+    - Change white-space to "%20" instead of "+" on fixparam()
+    - Change "%20" to white-space on userdir_handler()
+    - Not to change "+" to white-space on userdir_handler()
+
+ -- Taku YASUI <tach****@osdn*****>  Wed,  8 Oct 2008 06:38:49 +0000
+
 slash (2.5.0.192-20) unstable; urgency=low
 
   * Back to default only 'slashboxes' when 'restore_default_slashbox'


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