don't insert link summaries containing javascript bug #75

pull/1/head
Friendika 2011-05-21 05:27:53 -07:00
rodzic ccbdc9b2fc
commit bc2297d933
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -61,6 +61,8 @@ function parse_url_content(&$a) {
$items = $div->getElementsByTagName('p');
if($items) {
foreach($items as $item) {
if($item->getElementsByTagName('script'))
continue;
$text = $item->textContent;
$text = strip_tags($text);
if(strlen($text) < 100)
@ -77,6 +79,8 @@ function parse_url_content(&$a) {
$items = $dom->getElementsByTagName('p');
if($items) {
foreach($items as $item) {
if($item->getElementsByTagName('script'))
continue;
$text = $item->textContent;
$text = strip_tags($text);
if(strlen($text) < 100)