[Slashdotjp-dev 711] [218] Fix warning: Use of uninitialized value in substitution iterator at

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2007年 10月 24日 (水) 19:18:42 JST


Revision: 218
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=218
Author:   tach
Date:     2007-10-24 19:18:42 +0900 (Wed, 24 Oct 2007)

Log Message:
-----------
Fix warning: Use of uninitialized value in substitution iterator at
fixparam() in Slash/Utility/Data/Data.pm

Modified Paths:
--------------
    slashjp/trunk/Slash/Utility/Data/Data.pm
    slashjp/trunk/debian/changelog


-------------- next part --------------
Modified: slashjp/trunk/Slash/Utility/Data/Data.pm
===================================================================
--- slashjp/trunk/Slash/Utility/Data/Data.pm	2007-10-24 09:51:53 UTC (rev 217)
+++ slashjp/trunk/Slash/Utility/Data/Data.pm	2007-10-24 10:18:42 UTC (rev 218)
@@ -2138,6 +2138,8 @@
 
 sub fixparam {
 	my($url) = @_;
+	no utf8;
+	Encode::is_utf8($url) and $url = Encode::encode_utf8($url);
 	$url =~ s/([^$URI::unreserved ])/$URI::Escape::escapes{$1}/og;
 	$url =~ s/ /+/g;
 	return $url;

Modified: slashjp/trunk/debian/changelog
===================================================================
--- slashjp/trunk/debian/changelog	2007-10-24 09:51:53 UTC (rev 217)
+++ slashjp/trunk/debian/changelog	2007-10-24 10:18:42 UTC (rev 218)
@@ -10,8 +10,10 @@
   * Fix: remove filter failed: plugins/Admin/admin.pl
   * Typo fix at Slash/LDAPDB/lib/Slash/LDAPDB.pm
   * Fix warning: Wide character in print at plugins/Admin/admin.pl
+  * Fix warning: Use of uninitialized value in substitution iterator at
+    fixparam() in Slash/Utility/Data/Data.pm
 
- -- Taku YASUI <tach****@osdn*****>  Wed, 24 Oct 2007 18:50:39 +0900
+ -- Taku YASUI <tach****@osdn*****>  Wed, 24 Oct 2007 19:16:59 +0900
 
 slash (2.5.0.119-17) unstable; urgency=low
 


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