Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{{ c.name|safe }} 有问题 #16

Open
n37r06u3 opened this issue May 24, 2014 · 3 comments
Open

{{ c.name|safe }} 有问题 #16

n37r06u3 opened this issue May 24, 2014 · 3 comments

Comments

@n37r06u3
Copy link

分类 name 写成

<script>alert(1111)</script> 

也行啊

@n37r06u3
Copy link
Author

index.html 也有 {{ cate_name|safe }}

@wwq0327
Copy link
Owner

wwq0327 commented May 24, 2014

不是太明白什么意思。

@n37r06u3
Copy link
Author

文章分类就是一个普通的名字而且 没必要加 |safe吧

safe一般是加到文章内容里的 用来禁止转义字符

一个name也就几个字符没必要加safe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants