mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-30 09:01:29 +00:00
update HTMLPurifier; enable embedded flash video in articles
This commit is contained in:
0
lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email.php
Executable file → Normal file
0
lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email.php
Executable file → Normal file
0
lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php
Executable file → Normal file
0
lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php
Executable file → Normal file
6
lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Host.php
Executable file → Normal file
6
lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Host.php
Executable file → Normal file
@@ -23,6 +23,12 @@ class HTMLPurifier_AttrDef_URI_Host extends HTMLPurifier_AttrDef
|
||||
|
||||
public function validate($string, $config, $context) {
|
||||
$length = strlen($string);
|
||||
// empty hostname is OK; it's usually semantically equivalent:
|
||||
// the default host as defined by a URI scheme is used:
|
||||
//
|
||||
// If the URI scheme defines a default for host, then that
|
||||
// default applies when the host subcomponent is undefined
|
||||
// or when the registered name is empty (zero length).
|
||||
if ($string === '') return '';
|
||||
if ($length > 1 && $string[0] === '[' && $string[$length-1] === ']') {
|
||||
//IPv6
|
||||
|
||||
0
lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/IPv4.php
Executable file → Normal file
0
lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/IPv4.php
Executable file → Normal file
0
lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/IPv6.php
Executable file → Normal file
0
lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/IPv6.php
Executable file → Normal file
Reference in New Issue
Block a user