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

method not allowed #13

Closed
Serendipitya opened this issue Dec 25, 2023 · 8 comments
Closed

method not allowed #13

Serendipitya opened this issue Dec 25, 2023 · 8 comments

Comments

@Serendipitya
Copy link

the method is not allowed for the requested URL

截屏2023-12-25 21 37 55
@Nagi-ovo
Copy link
Owner

Nagi-ovo commented Dec 25, 2023

请检查是否有如下情况:

  • 修改过下载后的报告文件名;
  • 选择了错误的文件;
  • 对文件做过任意修改。

这是否能解决你的问题?

@AstridTrj
Copy link

同样的问题,这和改文件名有啥关系呢?

@Nagi-ovo
Copy link
Owner

同样的问题,这和改文件名有啥关系呢?

有这样一个异常处理:

if not file.filename.startswith('教育部学籍在线验证报告_'):
        flash('请不要传入无关文件')
        return redirect(request.url)

@AstridTrj
Copy link

啊这,好吧,这是没想到的。

@Nagi-ovo
Copy link
Owner

啊这,好吧,这是没想到的。

所以是这个问题吗🤔修改文件名后有没有得到解决呢

@AstridTrj
Copy link

啊这,好吧,这是没想到的。

所以是这个问题吗🤔修改文件名后有没有得到解决呢

是的,解决了,感谢感谢hhh

@Serendipitya
Copy link
Author

Serendipitya commented Dec 28, 2023 via email

@Nagi-ovo
Copy link
Owner

感谢你们的反馈!
我现在就去完善一下相关的说明:)

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

3 participants