Skip to content
Permalink
Browse files Browse the repository at this point in the history
fix xss Attach Get Title Of Page
  • Loading branch information
mehrshaddarzi committed Apr 9, 2019
1 parent 9738dfe commit 5aec0a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/functions/functions.php
Expand Up @@ -2094,7 +2094,7 @@ function wp_statistics_get_site_title( $url ) {
if ( isset( $dom ) and $dom->getElementsByTagName( 'title' )->length > 0 ) {
$title = $dom->getElementsByTagName( 'title' )->item( '0' )->nodeValue;
}
return ( wp_strip_all_tags( $title ) == "" ? false : $title );
return ( wp_strip_all_tags( $title ) == "" ? false : wp_strip_all_tags( $title ) );
}

return false;
Expand Down

0 comments on commit 5aec0a0

Please sign in to comment.