Browse Source

修复QRCode XSS跨站脚本漏洞

tags/6.0.0
tianya 3 years ago
parent
commit
435c2a4b0d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/plus/qrcode.php

+ 1
- 1
src/plus/qrcode.php View File

@@ -5,7 +5,7 @@ require_once(dirname(__FILE__).'/../include/common.inc.php');
require_once(DEDEINC.'/qrcode.class.php');
$action = isset($action)? $action : '';
$type = isset($type)? $type : '';
$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";


Loading…
Cancel
Save