mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Trim empty lines. Nothing but newline.
git-svn-id: https://develop.svn.wordpress.org/trunk@5700 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -109,7 +109,7 @@ class AtomParser {
|
||||
$fp = fopen("php://input", "r");
|
||||
while(!feof($fp)) {
|
||||
$line = fgets($fp, 4096);
|
||||
|
||||
|
||||
if($app_logging) $contents .= $line;
|
||||
|
||||
if(!xml_parse($parser, $line)) {
|
||||
@@ -162,7 +162,7 @@ class AtomParser {
|
||||
if(count($this->in_content) == 2) {
|
||||
array_push($this->in_content, ">");
|
||||
}
|
||||
|
||||
|
||||
array_push($this->in_content, "<". $this->ns_to_prefix($name) ."{$xmlns_str}{$attrs_str}");
|
||||
} else if(in_array($tag, $this->ATOM_CONTENT_ELEMENTS) || in_array($tag, $this->ATOM_SIMPLE_ELEMENTS)) {
|
||||
$this->in_content = array();
|
||||
|
||||
Reference in New Issue
Block a user