root/afridex/plugins/Flutter/purifier_lib/HTMLPurifier/URIScheme/news.php
@
23
| Revision 21, 510 bytes (checked in by admin, 18 years ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Validates news (Usenet) as defined by generic RFC 1738 |
| 5 | */ |
| 6 | class HTMLPurifier_URIScheme_news extends HTMLPurifier_URIScheme { |
| 7 | |
| 8 | public $browsable = false; |
| 9 | |
| 10 | public function validate(&$uri, $config, $context) { |
| 11 | parent::validate($uri, $config, $context); |
| 12 | $uri->userinfo = null; |
| 13 | $uri->host = null; |
| 14 | $uri->port = null; |
| 15 | $uri->query = null; |
| 16 | // typecode check needed on path |
| 17 | return true; |
| 18 | } |
| 19 | |
| 20 | } |
| 21 |
Note: See TracBrowser
for help on using the browser.
