From: friendica Date: Thu, 1 Mar 2012 08:21:30 +0000 (-0800) Subject: xml escape ljpost vars X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7b86f5babe9ac38fb2c878ba6b21e76f8907a935;p=friendica-addons.git xml escape ljpost vars --- diff --git a/ljpost.tgz b/ljpost.tgz index 5189d6e0..f14b33d4 100644 Binary files a/ljpost.tgz and b/ljpost.tgz differ diff --git a/ljpost/ljpost.php b/ljpost/ljpost.php index 6a85d8f2..c1b9b975 100755 --- a/ljpost/ljpost.php +++ b/ljpost/ljpost.php @@ -161,16 +161,22 @@ function ljpost_send(&$a,&$b) { if($x && strlen($x[0]['timezone'])) $tz = $x[0]['timezone']; - $lj_username = get_pconfig($b['uid'],'ljpost','lj_username'); - $lj_password = get_pconfig($b['uid'],'ljpost','lj_password'); - $lj_blog = 'http://www.livejournal.com/interface/xmlrpc'; + $lj_username = xmlify(get_pconfig($b['uid'],'ljpost','lj_username')); + $lj_password = xmlify(get_pconfig($b['uid'],'ljpost','lj_password')); + $lj_journal = xmlify(get_pconfig($b['uid'],'ljpost','lj_journal')); +// if(! $lj_journal) +// $lj_journal = $lj_username; + + $lj_blog = xmlify(get_pconfig($b['uid'],'ljpost','lj_blog')); + if(! strlen($lj_blog)) + $lj_blog = xmlify('http://www.livejournal.com/interface/xmlrpc'); if($lj_username && $lj_password && $lj_blog) { require_once('include/bbcode.php'); require_once('include/datetime.php'); - $title = $b['title']; + $title = xmlify($b['title']); $post = bbcode($b['body']); $post = xmlify($post);