ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
file.php
Go to the documentation of this file.
1 <?php
2 
7 {
13  public $browsable = false;
14 
23  public $may_omit_host = true;
24 
31  public function doValidate(&$uri, $config, $context)
32  {
33  // Authentication method is not supported
34  $uri->userinfo = null;
35  // file:// makes no provisions for accessing the resource
36  $uri->port = null;
37  // While it seems to work on Firefox, the querystring has
38  // no possible effect and is thus stripped.
39  $uri->query = null;
40  return true;
41  }
42 }
43 
44 // vim: et sw=4 sts=4
doValidate(&$uri, $config, $context)
Definition: file.php:31
Validates file as defined by RFC 1630 and RFC 1738.
Definition: file.php:6
$may_omit_host
Basically the only URI scheme for which this is true, since accessing files on the local machine is v...
Definition: file.php:23
Validator for the components of a URI for a specific scheme.
Definition: URIScheme.php:6
$browsable
Generally file:// URLs are not accessible from most machines, so placing them as an img src is incorr...
Definition: file.php:13