Permalink
Browse files

Bugfix: https url replacement

Исправление ошибки с некорректной заменой https-ссылок.
  • Loading branch information...
Exileum committed Sep 7, 2014
1 parent 85e2cb6 commit 44dd6f69d09ba26bd0fb70ca7265be92fa08c662
Showing with 2 additions and 2 deletions.
  1. +1 −1 upload/config.php
  2. +1 −1 upload/includes/bbcode.php
View
@@ -72,7 +72,7 @@
// Version info
$bb_cfg['tp_version'] = '2.1 (STABLE)';
$bb_cfg['tp_release_date'] = '01-09-2014';
$bb_cfg['tp_release_date'] = '07-09-2014';
$bb_cfg['tp_release_state'] = 'R600';
// Database
@@ -704,7 +704,7 @@ function url_callback ($m)
$url = trim($m[1]);
$url_name = (isset($m[2])) ? trim($m[2]) : $url;
if (!preg_match("#^http://#", $url) && !preg_match("/^#/", $url)) $url = 'http://' . $url;
if (!preg_match("#^https?://#isu", $url) && !preg_match("/^#/", $url)) $url = 'http://' . $url;
if (in_array(parse_url($url, PHP_URL_HOST), $bb_cfg['nofollow']['allowed_url']) || $bb_cfg['nofollow']['disabled'])
{

0 comments on commit 44dd6f6

Please sign in to comment.