-
Notifications
You must be signed in to change notification settings - Fork 51
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
Avoid "File name too long" error #1128
Conversation
Any file error will be ignored and jump straight to treating var as CSS text. fixes tethysplatform#1127
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch @araglu. See my comment.
The login page calls load_custom_css() twice with an empty var, so this now returns early for that.
load_custom_css() now returns an empty string for a file that does not exist, so test_get_css_is_code() has been updated to test CSS code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few suggestions for comments to aid future devs. Feel free to refine/correct.
Co-authored-by: Nathan Swain <[email protected]>
Co-authored-by: Nathan Swain <[email protected]>
Co-authored-by: Nathan Swain <[email protected]>
Co-authored-by: Nathan Swain <[email protected]>
I like all those changes. Thanks! |
All merged. Thank you for the contribution @araglu! |
Description
This merge request addresses #1127 where CSS text greater than 256 characters causes an OSError exception on many pages, including admin pages.
Changes Made to Code:
Related
Additional Notes
Quality Checks