Skip to content

Commit

Permalink
fix(iframe): 解决 vue-router 3.4.6 params 中的链接未解码导致 iframe 页签加载失败
Browse files Browse the repository at this point in the history
  • Loading branch information
bhuh12 committed Oct 17, 2020
1 parent f6073d3 commit 9ff5d16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/page/Iframe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default {
computed: {
// 链接安全过滤,避免执行js
url() {
let { src } = this
let src = decodeURIComponent(this.src)
// XSS 攻击链接返回空白页
if (/^javascript:/.test(src)) {
Expand Down

0 comments on commit 9ff5d16

Please sign in to comment.