/engine/classes/parse.class.php
1. Найти и заменить:
$parse_config->set('URI.AllowedSchemes', array('http' => true, 'https' => true, 'mailto' => true, 'ftp' => true, 'nntp' => true, 'news' => true, 'tel' => true,'magnet' => true) );
На
$parse_config->set('URI.AllowedSchemes', array('http' => true, 'https' => true, 'mailto' => true, 'ftp' => true, 'nntp' => true, 'news' => true, 'tel' => true,'magnet' => true, 'mdc' => true) );
2. Найти и заменить:
if( !preg_match( "#^(http|https|ftp|nntp|news:(//#", $url['html'] ) AND !preg_match( "#^(tel:(#", $url['html'] ) AND !preg_match( "#^(magnet:(#", $url['html'] ) AND $url['html'][0] != "/" AND $url['html'][0] != "#") {
На
if( !preg_match( "#^(http|https|ftp|nntp|news:(//#", $url['html'] ) AND !preg_match( "#^(tel:(#", $url['html'] ) AND !preg_match( "#^(magnet:(#", $url['html'] ) AND !preg_match( "#^(mdc:(#", $url['html'] ) AND $url['html'][0] != "/" AND $url['html'][0] != "#") {
3. Найти и заменить:
if ( $url_array['scheme'] AND !in_array( $url_array['scheme'], array("http","https","mailto","ftp","nntp","news","tel","magnet")) ) {
На
if ( $url_array['scheme'] AND !in_array( $url_array['scheme'], array("http","https","mailto","ftp","nntp","news","tel","magnet","mdc")) ) {