return 0 from get_body_length before loading the body to DomDocument if body is empty #71

Merged
CyberDomovoy merged 2 commits from nsfw_showmore into master 2012-07-27 13:19:12 +02:00
CyberDomovoy commented 2012-07-27 10:11:20 +02:00 (Migrated from github.com)
Fixes http://bugs.friendica.com/view.php?id=463
CyberDomovoy commented 2012-07-27 10:14:42 +02:00 (Migrated from github.com)

DomDocument::loadHTML was producing a warning saying it was asked to load an empty string.
Then DOMXPath was crashing the process without warning...

DomDocument::loadHTML was producing a warning saying it was asked to load an empty string. Then DOMXPath was crashing the process without warning...
Sign in to join this conversation.
No description provided.