Go to the source code of this file.
◆ wfUrlProtocols()
Returns a regular expression of url protocols.
- Returns
- string
Definition at line 44 of file class.ilMWParserAdapter.php.
44 {
45 global $wgUrlProtocols;
46
47 $wgUrlProtocols = array(
48 'http://',
49 'https://',
50 'ftp://',
51 'irc://',
52 'gopher://',
53 'telnet://',
54 'nntp://',
55 'worldwind://',
56 'mailto:',
57 'news:'
58 );
59
60
61
62
63 if ( is_array( $wgUrlProtocols ) ) {
64 $protocols = array();
65 foreach ($wgUrlProtocols as $protocol)
66 $protocols[] = preg_quote( $protocol, '/' );
67
68 return implode( '|', $protocols );
69 } else {
70 return $wgUrlProtocols;
71 }
72}
◆ $GLOBALS
◆ UTF8_REPLACEMENT
const UTF8_REPLACEMENT(!function_exists( 'codepointToUtf8')) |
( |
! |
function_exists 'codepointToUtf8' | ) |
"\xef\xbf\xbd" |