Skip to content

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

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: К посту прикреплены вложения, но посмотреть Вы их можете, только открыв статью в Форуме.

Featured Replies

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.