From d1bdb4120bfc564addf92ef8625341da663237c5 Mon Sep 17 00:00:00 2001 From: darkfriend Date: Tue, 17 Dec 2019 00:18:53 +0300 Subject: [PATCH] fixed check protocol for setPropertyPropFields --- utf8/dev2fun.opengraph/classes/general/OpenGraph.php | 2 +- win1251/dev2fun.opengraph/classes/general/OpenGraph.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }