summaryrefslogtreecommitdiffstats
path: root/php-laminas-tag-escaper.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-laminas-tag-escaper.patch')
-rw-r--r--php-laminas-tag-escaper.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/php-laminas-tag-escaper.patch b/php-laminas-tag-escaper.patch
new file mode 100644
index 0000000..fed770c
--- /dev/null
+++ b/php-laminas-tag-escaper.patch
@@ -0,0 +1,22 @@
+From d864af14cf8645f5ab09df9cd406b4eafd113a57 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Tue, 3 Aug 2021 10:36:00 +0200
+Subject: [PATCH] fix for laminas/escaper 2.8
+
+---
+ src/Cloud/Decorator/HtmlTag.php | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Cloud/Decorator/HtmlTag.php b/src/Cloud/Decorator/HtmlTag.php
+index 6e50578..89ab75b 100644
+--- a/src/Cloud/Decorator/HtmlTag.php
++++ b/src/Cloud/Decorator/HtmlTag.php
+@@ -241,7 +241,7 @@ public function render($tags)
+
+ $tagHTML = sprintf(
+ '<a href="%s" %s>%s</a>',
+- $escaper->escapeHtml($tag->getParam('url')),
++ $escaper->escapeHtml($tag->getParam('url') ?? ''),
+ $attribute,
+ $escaper->escapeHtml($tag->getTitle())
+ );