[Slashdotjp-dev 1007] [534] Fix to remove some unicode control characters from form

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 3月 6日 (木) 16:50:17 JST


Revision: 534
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=534
Author:   tach
Date:     2008-03-06 16:50:17 +0900 (Thu, 06 Mar 2008)

Log Message:
-----------
Fix to remove some unicode control characters from form

Modified Paths:
--------------
    slashjp/branches/2.5.0.192/Slash/Utility/Environment/Environment.pm
    slashjp/branches/2.5.0.192/debian/changelog


-------------- next part --------------
Modified: slashjp/branches/2.5.0.192/Slash/Utility/Environment/Environment.pm
===================================================================
--- slashjp/branches/2.5.0.192/Slash/Utility/Environment/Environment.pm	2008-03-05 11:27:04 UTC (rev 533)
+++ slashjp/branches/2.5.0.192/Slash/Utility/Environment/Environment.pm	2008-03-06 07:50:17 UTC (rev 534)
@@ -466,6 +466,7 @@
 	} else {
 		$form = $static_form;
 	}
+	map { $form->{$_} =~ s/\p{BidiControl}|\p{Unassigned}|\p{JoinControl}//g } keys(%$form);
 
 	return defined $value ? $form->{$value} : $form;
 }

Modified: slashjp/branches/2.5.0.192/debian/changelog
===================================================================
--- slashjp/branches/2.5.0.192/debian/changelog	2008-03-05 11:27:04 UTC (rev 533)
+++ slashjp/branches/2.5.0.192/debian/changelog	2008-03-06 07:50:17 UTC (rev 534)
@@ -1,8 +1,9 @@
 slash (2.5.0.192-7) unstable; urgency=low
 
   * Add to forbid Moderation for user doing bad moderation
+  * Fix to remove some unicode control characters from form
 
- -- Taku YASUI <tach****@osdn*****>  Wed,  5 Mar 2008 11:13:24 +0000
+ -- Taku YASUI <tach****@osdn*****>  Thu,  6 Mar 2008 07:47:56 +0000
 
 slash (2.5.0.192-6) unstable; urgency=low
 


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