should fix UTF-8 issues with self-service XML-RPC interface, RT#13656
authorivan <ivan>
Fri, 28 Oct 2011 05:35:30 +0000 (05:35 +0000)
committerivan <ivan>
Fri, 28 Oct 2011 05:35:30 +0000 (05:35 +0000)
FS/bin/freeside-selfservice-xmlrpcd
fs_selfservice/FS-SelfService/cgi/xmlrpc.cgi

index e50d516..acf516a 100755 (executable)
@@ -36,7 +36,7 @@ my $lock_file = "$FREESIDE_LOCK/selfservice-xmlrpcd.writelock";
 
 #freeside xmlrpc.cgi
 my %typelookup = (
-  base64 => [10, sub {$_[0] =~ /[^\x09\x0a\x0d\x20-\x7f]/}, 'as_base64'],
+#not utf-8 safe#  base64 => [10, sub {$_[0] =~ /[^\x09\x0a\x0d\x20-\x7f]/}, 'as_base64'],
   dateTime => [35, sub {$_[0] =~ /^\d{8}T\d\d:\d\d:\d\d$/}, 'as_dateTime'],
   string => [40, sub {1}, 'as_string'],
 );
index 559ae04..d5a8e20 100644 (file)
@@ -6,7 +6,7 @@ use XMLRPC::Lite; # for XMLRPC::Serializer
 use FS::SelfService::XMLRPC;
 
 my %typelookup = (
-  base64 => [10, sub {$_[0] =~ /[^\x09\x0a\x0d\x20-\x7f]/}, 'as_base64'],
+#not utf-8 safe#  base64 => [10, sub {$_[0] =~ /[^\x09\x0a\x0d\x20-\x7f]/}, 'as_base64'],
   dateTime => [35, sub {$_[0] =~ /^\d{8}T\d\d:\d\d:\d\d$/}, 'as_dateTime'],
   string => [40, sub {1}, 'as_string'],
 );