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

v1.0.1: Unable to upload files into Media #193

Closed
webbird opened this issue Nov 12, 2013 · 2 comments
Closed

v1.0.1: Unable to upload files into Media #193

webbird opened this issue Nov 12, 2013 · 2 comments
Assignees
Labels
Milestone

Comments

@webbird
Copy link
Contributor

webbird commented Nov 12, 2013

When trying to upload a file, you get a "error: forbidden" dialog box. Viewing the console, you find "CSRF check failed. Your form session may have expired, or you may not have cookies enabled.".

@ghost ghost assigned webbird Nov 13, 2013
@webbird
Copy link
Contributor Author

webbird commented Nov 13, 2013

Reason seems to be that there is no form data transmitted, including _cat_ajax, which would disable CSRFMagic for AJAX calls. $_REQUEST is empty, dunno why.

@webbird
Copy link
Contributor Author

webbird commented Nov 13, 2013

Found this to be a bug in csrf-magic.js, which was upgraded to v1.0.4 with BC 1.0.1.

See: ezyang/csrf-magic#4

To fix, download the old .js here and replace: http://forum.blackcat-cms.org/download/file.php?id=56

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

No branches or pull requests

1 participant