Some characters in cut text attributes were causing crossposts to fail. 
 Switch to use HTML::Entities which does things correctly.

        Patch by allen. 

diffs (20 lines):

diff -r 75f98a293c1d -r 6f2475049809 
cgi-bin/DW/External/XPostProtocol/LJXMLRPC.pm
--- a/cgi-bin/DW/External/XPostProtocol/LJXMLRPC.pm     Wed Jan 06 00:29:51 
2010 +0000
+++ b/cgi-bin/DW/External/XPostProtocol/LJXMLRPC.pm     Wed Jan 06 00:33:22 
2010 +0000
@@ -20,6 +20,7 @@ use warnings;
 
 use Digest::MD5 qw(md5_hex);  
 use XMLRPC::Lite;
+use HTML::Entities ();
 
 # create a new instance of LJXMLRPC
 sub instance {
@@ -483,7 +484,7 @@ sub clean_lj_tags {
                 $newdata .= "<$tag";
                 # output attributes in original order
                 foreach (@$attrs) {
-                    $newdata .= " $_=\"" . LJ::ehtml($hash->{$_}) . "\""
+                    $newdata .= " $_=\"" . HTML::Entities::encode( $hash->{$_} 
) . "\""
                         if exists $hash->{$_};
                 }
                 $newdata .= " /" if $slashclose;
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to