Go to the source code of this file.
Functions |
| wfUrlProtocols () |
| Returns a regular expression of url protocols.
|
Function Documentation
Returns a regular expression of url protocols.
- Returns
- string
Definition at line 44 of file class.ilMWParserAdapter.php.
{
global $wgUrlProtocols;
$wgUrlProtocols = array(
'http://',
'https://',
'ftp://',
'irc://',
'gopher://',
'telnet://',
'nntp://',
'worldwind://',
'mailto:',
'news:'
);
if ( is_array( $wgUrlProtocols ) ) {
$protocols = array();
foreach ($wgUrlProtocols as $protocol)
$protocols[] = preg_quote( $protocol, '/' );
return implode( '|', $protocols );
} else {
return $wgUrlProtocols;
}
}
Variable Documentation
const UTF8_REPLACEMENT(!function_exists('codepointToUtf8')) = "\xef\xbf\xbd" |