mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
parent
b8df74beca
commit
1af505701b
7 changed files with 25 additions and 25 deletions
|
@ -14,7 +14,7 @@ use Friendica\Core\Logger;
|
|||
use Friendica\Core\PConfig;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Util\Network;
|
||||
use Friendica\Util\Strings;
|
||||
use Friendica\Util\XML;
|
||||
|
||||
function wppost_install() {
|
||||
Addon::registerHook('post_local', 'addon/wppost/wppost.php', 'wppost_post_local');
|
||||
|
@ -217,8 +217,8 @@ function wppost_send(&$a,&$b) {
|
|||
return;
|
||||
}
|
||||
|
||||
$wp_username = Strings::escape(PConfig::get($b['uid'], 'wppost', 'wp_username'));
|
||||
$wp_password = Strings::escape(PConfig::get($b['uid'], 'wppost',' wp_password'));
|
||||
$wp_username = XML::(PConfig::get($b['uid'], 'wppost', 'wp_username'));
|
||||
$wp_password = XML::escape(PConfig::get($b['uid'], 'wppost',' wp_password'));
|
||||
$wp_blog = PConfig::get($b['uid'],'wppost','wp_blog');
|
||||
$wp_backlink_text = PConfig::get($b['uid'],'wppost','wp_backlink_text');
|
||||
if ($wp_backlink_text == '') {
|
||||
|
@ -295,7 +295,7 @@ function wppost_send(&$a,&$b) {
|
|||
. $wp_backlink_text . '</a>' . EOL . EOL;
|
||||
}
|
||||
|
||||
$post = Strings::escape($post);
|
||||
$post = XML::escape($post);
|
||||
|
||||
|
||||
$xml = <<< EOT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue