Jump to content
Дизайн и модификация Invision Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Guest RSS-Bot

Важное с Sysman.Ru: Ошибка в парсинге http ссылок

Recommended Posts

Guest RSS-Bot

Song: Симтомы: набираем

получаем:

 

Исправление:

найти:

Цитата (sources/classes/class_bbcode.php)
            [color=green]//-----------------------------------------[/color]            [color=green]// Auto parse URLs[/color]            [color=green]//-----------------------------------------[/color]            [color=#048284]$txt[/color] = preg_replace( "#(^|\s|>)((http|https|news|ftp)://\w+[^\s\[\]\<]+)#ie"  , "\$this->regex_build_url(array('html' => '\\2', 'show' => '\\2', 'st' => '\\1'))", [color=#048284]$txt[/color] );

заменить на:

            [color=green]//-----------------------------------------[/color]            [color=green]// http://www.index.com[/color]            [color=green]// ibforums![/color]            [color=green]//-----------------------------------------[/color]            [color=#048284]$txt[/color] = preg_replace( "#\[url\](\S+?)\[/url\]#ie"                                       , "\$this->regex_build_url(array('html' => '\\1', 'show' => '\\1'))", [color=#048284]$txt[/color] );            [color=#048284]$txt[/color] = preg_replace( "#\[url\s*=\s*\&quot\;\s*(\S+?)\s*\&quot\;\s*\](.*?)\[\/url\]#ie" , "\$this->regex_build_url(array('html' => '\\1', 'show' => '\\2'))", [color=#048284]$txt[/color] );            [color=#048284]$txt[/color] = preg_replace( "#\[url\s*=\s*(\S+?)\s*\](.*?)\[\/url\]#ie"                       , "\$this->regex_build_url(array('html' => '\\1', 'show' => '\\2'))", [color=#048284]$txt[/color] );

 

Song_Bot: К посту прикреплены вложения, но посмотреть Вы их можете, только открыв статью в Форуме.

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...