diff --git a/utf8/dev2fun.opengraph/classes/general/OpenGraph.php b/utf8/dev2fun.opengraph/classes/general/OpenGraph.php index 18424ba..7145aee 100644 --- a/utf8/dev2fun.opengraph/classes/general/OpenGraph.php +++ b/utf8/dev2fun.opengraph/classes/general/OpenGraph.php @@ -651,7 +651,7 @@ public function setPropertyPropFields($ogData) if (!$ogValue) $ogValue = $APPLICATION->GetProperty('description'); break; case 'og:image' : - if (!preg_match('#^(http|https)\:\\\\#', $ogValue)) { + if (!preg_match('#^(http|https)#', $ogValue)) { $prefix = $oModule->getProtocol() . $oModule->getHost(); $ogValue = $prefix . $ogValue; } diff --git a/win1251/dev2fun.opengraph/classes/general/OpenGraph.php b/win1251/dev2fun.opengraph/classes/general/OpenGraph.php index 18424ba..7145aee 100644 --- a/win1251/dev2fun.opengraph/classes/general/OpenGraph.php +++ b/win1251/dev2fun.opengraph/classes/general/OpenGraph.php @@ -651,7 +651,7 @@ public function setPropertyPropFields($ogData) if (!$ogValue) $ogValue = $APPLICATION->GetProperty('description'); break; case 'og:image' : - if (!preg_match('#^(http|https)\:\\\\#', $ogValue)) { + if (!preg_match('#^(http|https)#', $ogValue)) { $prefix = $oModule->getProtocol() . $oModule->getHost(); $ogValue = $prefix . $ogValue; }