diff options
Diffstat (limited to 'admin/survey/classes/htmlpurifier-4.3.0/library/HTMLPurifier/URIScheme/http.php')
-rw-r--r-- | admin/survey/classes/htmlpurifier-4.3.0/library/HTMLPurifier/URIScheme/http.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/admin/survey/classes/htmlpurifier-4.3.0/library/HTMLPurifier/URIScheme/http.php b/admin/survey/classes/htmlpurifier-4.3.0/library/HTMLPurifier/URIScheme/http.php new file mode 100644 index 0000000..ea3cb2f --- /dev/null +++ b/admin/survey/classes/htmlpurifier-4.3.0/library/HTMLPurifier/URIScheme/http.php @@ -0,0 +1,19 @@ +<?php
+
+/**
+ * Validates http (HyperText Transfer Protocol) as defined by RFC 2616
+ */
+class HTMLPurifier_URIScheme_http extends HTMLPurifier_URIScheme {
+
+ public $default_port = 80;
+ public $browsable = true;
+ public $hierarchical = true;
+
+ public function doValidate(&$uri, $config, $context) {
+ $uri->userinfo = null;
+ return true;
+ }
+
+}
+
+// vim: et sw=4 sts=4
|