Skip to content

Commit

Permalink
fixed check protocol for setPropertyPropFields
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfriend committed Dec 16, 2019
1 parent e1f343d commit d1bdb41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utf8/dev2fun.opengraph/classes/general/OpenGraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion win1251/dev2fun.opengraph/classes/general/OpenGraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d1bdb41

Please sign in to comment.