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

修复了无法对带参数get请求正确判断权限的bug #54

Merged
merged 1 commit into from
Nov 25, 2016

Conversation

cst05001
Copy link

beego 的 ctx.Request.RequestURI 参数包含了 get 请求的参数。
而源代码在做权限判断 params[2] 中 并没有过滤掉 get 传参(www.example.com/package/controller/method?param) 的 param 部分。
所以method 权限会以 method?param 进行匹配, 无法匹配权限。

@astaxie astaxie merged commit be792d1 into beego:master Nov 25, 2016
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

Successfully merging this pull request may close these issues.

2 participants