Update SimplePie to 1.3.1. Props rmccue, ocean90. fixes #22321
git-svn-id: http://core.svn.wordpress.org/trunk@22366 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* @package SimplePie
|
||||
* @version 1.3
|
||||
* @version 1.3.1
|
||||
* @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
|
||||
* @author Ryan Parman
|
||||
* @author Geoffrey Sneddon
|
||||
@@ -390,8 +390,8 @@ class SimplePie_IRI
|
||||
}
|
||||
else
|
||||
{
|
||||
trigger_error('This should never happen', E_USER_ERROR);
|
||||
die;
|
||||
// This can occur when a paragraph is accidentally parsed as a URI
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -824,6 +824,10 @@ class SimplePie_IRI
|
||||
else
|
||||
{
|
||||
$parsed = $this->parse_iri((string) $iri);
|
||||
if (!$parsed)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$return = $this->set_scheme($parsed['scheme'])
|
||||
&& $this->set_authority($parsed['authority'])
|
||||
|
||||
Reference in New Issue
Block a user