ソースを参照

修复QRCode XSS跨站脚本漏洞

master
tianya 4年前
コミット
435c2a4b0d
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      src/plus/qrcode.php

+ 1
- 1
src/plus/qrcode.php ファイルの表示

@@ -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";


読み込み中…
キャンセル
保存