]> git.immae.eu Git - github/wallabag/wallabag.git/blame - inc/3rdparty/htmlpurifier/HTMLPurifier/URIScheme/news.php
remove autoload section in composer.json
[github/wallabag/wallabag.git] / inc / 3rdparty / htmlpurifier / HTMLPurifier / URIScheme / news.php
CommitLineData
d4949327
NL
1<?php\r
2\r
3/**\r
4 * Validates news (Usenet) as defined by generic RFC 1738\r
5 */\r
6class HTMLPurifier_URIScheme_news extends HTMLPurifier_URIScheme\r
7{\r
8 /**\r
9 * @type bool\r
10 */\r
11 public $browsable = false;\r
12\r
13 /**\r
14 * @type bool\r
15 */\r
16 public $may_omit_host = true;\r
17\r
18 /**\r
19 * @param HTMLPurifier_URI $uri\r
20 * @param HTMLPurifier_Config $config\r
21 * @param HTMLPurifier_Context $context\r
22 * @return bool\r
23 */\r
24 public function doValidate(&$uri, $config, $context)\r
25 {\r
26 $uri->userinfo = null;\r
27 $uri->host = null;\r
28 $uri->port = null;\r
29 $uri->query = null;\r
30 // typecode check needed on path\r
31 return true;\r
32 }\r
33}\r
34\r
35// vim: et sw=4 sts=4\r