From 4211eca362db8f21e62a37c7f01f00fc0b448157 Mon Sep 17 00:00:00 2001 From: Alex Justesen Date: Sat, 1 Jan 2022 09:30:49 -0500 Subject: [PATCH 1/2] Removed url from sanitized Twitter values --- src/SEOTools/TwitterCards.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SEOTools/TwitterCards.php b/src/SEOTools/TwitterCards.php index 0550509..168e643 100644 --- a/src/SEOTools/TwitterCards.php +++ b/src/SEOTools/TwitterCards.php @@ -83,7 +83,7 @@ protected function eachValue(array $values, $prefix = null) */ private function makeTag($key, $value) { - $value = str_replace(['http-equiv=', 'url='], '', $value); + $value = str_replace(['http-equiv='], '', $value); return ''; } From b0b6a76f8c367198a857f548b8d9b5fe60ff02aa Mon Sep 17 00:00:00 2001 From: Alex Justesen Date: Sat, 1 Jan 2022 09:31:37 -0500 Subject: [PATCH 2/2] Removed url from sanitized OG values --- src/SEOTools/OpenGraph.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SEOTools/OpenGraph.php b/src/SEOTools/OpenGraph.php index 41995fb..6508bd4 100644 --- a/src/SEOTools/OpenGraph.php +++ b/src/SEOTools/OpenGraph.php @@ -263,7 +263,7 @@ protected function eachProperties( */ protected function makeTag($key = null, $value = null, $ogPrefix = false) { - $value = str_replace(['http-equiv=', 'url='], '', $value); + $value = str_replace(['http-equiv='], '', $value); return sprintf( '%s', $ogPrefix ? $this->og_prefix : '',