From 62ec1d9773cc43ffe1e202bcca708dc4d5c7e1b6 Mon Sep 17 00:00:00 2001 From: Devil Date: Wed, 14 Jul 2021 14:40:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E4=BC=98=E5=8C=96=E3=80=81=E9=81=BF=E5=85=8D?= =?UTF-8?q?&=E7=AC=A6=E5=8F=B7=E8=BD=AC=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/layout/service/BaseLayout.php | 2 +- application/service/AppCenterNavService.php | 2 +- application/service/AppHomeNavService.php | 2 +- application/service/BannerService.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/layout/service/BaseLayout.php b/application/layout/service/BaseLayout.php index 988ff58f4..72bb36ce3 100644 --- a/application/layout/service/BaseLayout.php +++ b/application/layout/service/BaseLayout.php @@ -612,7 +612,7 @@ class BaseLayout $key = 'pages_custom_url_'.$client_type; if(!empty($value) && is_array($value) && array_key_exists($key, $value) && !empty($value[$key])) { - $url = $value[$key]; + $url = htmlspecialchars_decode($value[$key]); } break; } diff --git a/application/service/AppCenterNavService.php b/application/service/AppCenterNavService.php index c66ad418f..feaa13696 100755 --- a/application/service/AppCenterNavService.php +++ b/application/service/AppCenterNavService.php @@ -293,7 +293,7 @@ class AppCenterNavService { $v['images_url_old'] = $v['images_url']; $v['images_url'] = ResourcesService::AttachmentPathViewHandle($v['images_url']); - $v['event_value'] = empty($v['event_value']) ? null : $v['event_value']; + $v['event_value'] = empty($v['event_value']) ? null : htmlspecialchars_decode($v['event_value']); } } // 存储缓存 diff --git a/application/service/AppHomeNavService.php b/application/service/AppHomeNavService.php index 520f58f56..c5ec301c2 100755 --- a/application/service/AppHomeNavService.php +++ b/application/service/AppHomeNavService.php @@ -300,7 +300,7 @@ class AppHomeNavService { $v['event_value_data'] = explode('|', $v['event_value']); } - $v['event_value'] = $v['event_value']; + $v['event_value'] = htmlspecialchars_decode($v['event_value']); } else { $v['event_value'] = null; } diff --git a/application/service/BannerService.php b/application/service/BannerService.php index 84f5418c6..736b8a2ff 100755 --- a/application/service/BannerService.php +++ b/application/service/BannerService.php @@ -61,7 +61,7 @@ class BannerService { $v['event_value_data'] = explode('|', $v['event_value']); } - $v['event_value'] = $v['event_value']; + $v['event_value'] = htmlspecialchars_decode($v['event_value']); } else { $v['event_value'] = null; }