Parcourir la source

Update channelunit.helper.php

tags/6.5.8
tianya il y a 1 semaine
Parent
révision
f89652cc2c
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      src/system/helpers/channelunit.helper.php

+ 2
- 2
src/system/helpers/channelunit.helper.php Voir le fichier

@@ -161,7 +161,7 @@ if (!function_exists('GetTypeUrl')) {
else $reurl = $typedir.'/'; else $reurl = $typedir.'/';
} }
} }
if (!preg_match("/^http:\/\//", $reurl)) {
if (!preg_match("/^(http|https):\/\//", $reurl)) {
$reurl = preg_replace("/\/{1,}/i", '/', $reurl); $reurl = preg_replace("/\/{1,}/i", '/', $reurl);
} }
if ($GLOBALS['cfg_multi_site'] == 'Y') { if ($GLOBALS['cfg_multi_site'] == 'Y') {
@@ -171,7 +171,7 @@ if (!function_exists('GetTypeUrl')) {
if ($moresite == 1) { if ($moresite == 1) {
$reurl = preg_replace("#^".$sitepath."#", '', $reurl); $reurl = preg_replace("#^".$sitepath."#", '', $reurl);
} }
if (!preg_match("/^http:\/\//", $reurl)) {
if (!preg_match("/^(http|https):\/\//", $reurl)) {
$reurl = $siteurl.$reurl; $reurl = $siteurl.$reurl;
} }
} }


Chargement…
Annuler
Enregistrer