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
CSS file can not be imported (missing token in form) #3975
Comments
Hola @NicoDucou puedes confirmar si esta bien ahora porfavor ? Esto es mi PR con el fix 0f3b54f Gracias. |
Settings: Fix CSS file can not be imported (missing token in form) - refs #3975
@NicoDucou this one is fixed, right? |
@ywarnier When do you plan to release version 1.11.18 ? |
Yes |
When it's ready (soon) |
Hi, |
I get exactly on submit : The requested URL was not found on this server. No error message even on test server mode. |
2 times "admin" ?? |
For the record, I have solve this by modifying the file mai/admin/settings.lib.php, line 400 But now, i get "not validated". Still searching... Seems to be the token issue again : quickform.php line 1435... |
On the page main/admin/settings.php?category=Stylesheets#tabs-3 when validating the form it always shows the message that the token is not validated and the CSS file is never imported.
Since the commit bf50545#diff-3b92311ca8f4223f9e4bd967854e03eba80d6707b77130b9b26706949c92a5b7R1431 when ever a form is validated it should check that the security token is valid. The problem is that in this form for stylesheet upload the token is never validated.
It calls Security::check_token('form', $this);
And in this function I don't know why the form token and the sessionToken are always different so the action is always blocked and the Stylesheet is not imported.
Tested on Chamilo 1.11.x of 2021/09/21
The text was updated successfully, but these errors were encountered: