X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fimporttwitteratom.php;h=d121179f47a9e45e0fa1777d0d9f9c29c419b499;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=261dfb1d02b7af595d628632eec97f1af2947cb4;hpb=f0b39defb24bcc9c9e403ac66e7d6a1621a4bd18;p=quix0rs-gnu-social.git diff --git a/scripts/importtwitteratom.php b/scripts/importtwitteratom.php old mode 100644 new mode 100755 index 261dfb1d02..d121179f47 --- a/scripts/importtwitteratom.php +++ b/scripts/importtwitteratom.php @@ -33,7 +33,7 @@ import an Atom feed from Twitter as notices by a user END_OF_IMPORTTWITTERATOM_HELP; -require_once INSTALLDIR.'/scripts/commandline.inc'; +require_once INSTALLDIR.'/scripts/commandline.inc.php'; require_once INSTALLDIR.'/extlib/htmLawed/htmLawed.php'; function getAtomFeedDocument() @@ -89,7 +89,7 @@ function importActivityStream($user, $doc) $html = htmLawed($html, $config); - $content = html_entity_decode(strip_tags($html)); + $content = html_entity_decode(strip_tags($html), ENT_QUOTES, 'UTF-8'); $notice = Notice::saveNew($user->id, $content,