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; }