From 28556e2285eef7e281de89205401061d77becf89 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 28 Mar 2017 14:54:59 +0300 Subject: [PATCH] Fix for links and parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix for links and parameters that contains = symbol. String for testing. [URL=https://www.youtube.com/watch?v=v5Xr-WkW5JM]NASA’s Spitzer Reveals Largest Batch of Earth-Size, Habitable-Zone Planets Around a Single Star [/URL] --- classes/Node/Container/Document.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Node/Container/Document.php b/classes/Node/Container/Document.php index 7e51349..a2fcdfa 100644 --- a/classes/Node/Container/Document.php +++ b/classes/Node/Container/Document.php @@ -875,7 +875,7 @@ private function parse_attribs($attribs) // if this tag only has one = then there is only one attribute // so add it all to default - if($attribs[0] == '=' && strrpos($attribs, '=') === 0) + if($attribs[0] == '=' && (strrpos($attribs, '=') === 0 || $attribs[0] == '=')) $ret['default'] = htmlentities(substr($attribs, 1), ENT_QUOTES | ENT_IGNORE, "UTF-8"); else {