|
| __construct ($scheme, $userinfo, $host, $port, $path, $query, $fragment) |
|
| getSchemeObj ($config, $context) |
|
| validate ($config, $context) |
|
| toString () |
|
| isLocal ($config, $context) |
|
| isBenign ($config, $context) |
|
HTML Purifier's internal representation of a URI.
- Zu beachten
- Internal data-structures are completely escaped. If the data needs to be used in a non-URI context (which is very unlikely), be sure to decode it first. The URI may not necessarily be well-formed until validate() is called.
Definiert in Zeile 11 der Datei URI.php.
__construct |
( |
|
$scheme, |
|
|
|
$userinfo, |
|
|
|
$host, |
|
|
|
$port, |
|
|
|
$path, |
|
|
|
$query, |
|
|
|
$fragment |
|
) |
| |
getSchemeObj |
( |
|
$config, |
|
|
|
$context |
|
) |
| |
isBenign |
( |
|
$config, |
|
|
|
$context |
|
) |
| |
Returns true if this URL should be considered a 'benign' URL, that is:
- It is a local URL (isLocal), and
- It has a equal or better level of security
- Parameter
-
- Rückgabe
- bool
Definiert in Zeile 293 der Datei URI.php.
Benutzt getSchemeObj() und isLocal().
isLocal |
( |
|
$config, |
|
|
|
$context |
|
) |
| |
Returns true if this URL might be considered a 'local' URL given the current context. This is true when the host is null, or when it matches the host supplied to the configuration.
Note that this does not do any scheme checking, so it is mostly only appropriate for metadata that doesn't care about protocol security. isBenign is probably what you actually want.
- Parameter
-
- Rückgabe
- bool
Definiert in Zeile 271 der Datei URI.php.
Wird benutzt von isBenign().
validate |
( |
|
$config, |
|
|
|
$context |
|
) |
| |
Generic validation method applicable for all schemes. May modify this URI in order to get it into a compliant form.
- Parameter
-
- Rückgabe
- bool True if validation/filtering succeeds, false if failure
Definiert in Zeile 106 der Datei URI.php.
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:
Sie sind hier: Home » MyOOS Benutzerhandbuch » HTML Purifier
Korrekturen, Hinweise und Ergänzungen
Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag
Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.