From 5f5828c283de21c89ed6cef93a4d175a6065d18a Mon Sep 17 00:00:00 2001 From: lanyi <1005197862@qq.com> Date: Sun, 17 Oct 2021 10:08:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DXSS=E6=BC=8F=E6=B4=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plus/qrcode.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plus/qrcode.php b/plus/qrcode.php index 1d42d70f..dda64dbc 100755 --- a/plus/qrcode.php +++ b/plus/qrcode.php @@ -7,7 +7,10 @@ $action = isset($action)? $action : ''; $type = isset($type)? RemoveXSS(HtmlReplace($type,3)) : ''; $id = (isset($id) && is_numeric($id)) ? $id : 0; -if ( !in_array($type,array('list','arc','index')) ) $url = "http://2v.dedecms.com"; +if ( !in_array($type,array('list','arc','index')) ){ + $url = "http://2v.dedecms.com"; + exit("error requests"); +} if ( $action=='get_qrcode' ) {