Go to the source code of this file.
◆ wfUrlProtocols()
Returns a regular expression of url protocols.
- Returns
- string
Definition at line 26 of file class.ilMWParserAdapter.php.
26 {
27 global $wgUrlProtocols;
28
29 $wgUrlProtocols = array(
30 'http://',
31 'https://',
32 'ftp://',
33 'irc://',
34 'gopher://',
35 'telnet://',
36 'nntp://',
37 'worldwind://',
38 'mailto:',
39 'news:'
40 );
41
42
43
44
45 if ( is_array( $wgUrlProtocols ) ) {
46 $protocols = array();
47 foreach ($wgUrlProtocols as $protocol)
48 $protocols[] = preg_quote( $protocol, '/' );
49
50 return implode( '|', $protocols );
51 } else {
52 return $wgUrlProtocols;
53 }
54}
◆ $GLOBALS
◆ if
if(!function_exists("wfProfileIn")) if(!function_exists("wfProfileOut")) |
( |
! |
function_exists"wfProfileOut" | ) |
|
◆ UTF8_REPLACEMENT
const UTF8_REPLACEMENT "\xef\xbf\xbd" |