-
Notifications
You must be signed in to change notification settings - Fork 27
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
decks that are pure emoji download as "txt" instead of a sane filename #13238
Comments
am i right in thinking this isn't specific to emoji, but any deck names that are all non-ascii, since we have to put the filename in the content-disposition header and headers don't like non-ascii? |
Yes I think we probably explicitly filter down to just ascii although I haven't looked at the code in a while. |
yeah, that's what's being done: https://github.com/PennyDreadfulMTG/Penny-Dreadful-Tools/blob/master/decksite/deck_name.py#L117 a quick fix would just check if |
Sounds alright to me. |
previously, a deck name with no safe (i.e. ascii) characters would lead to file_name() returning an empty string, and the downloaded file being simply `txt` addresses PennyDreadfulMTG#13238
Not sure if you want to, but we could throw it through |
previously, a deck name with no safe (i.e. ascii) characters would lead to file_name() returning an empty string, and the downloaded file being simply `txt` addresses PennyDreadfulMTG#13238
oh neat, if we're ok pulling in another dependency that'd work. though we'd probably need a bit of post-processing (removing the colons around emoji names, etc) |
previously, a deck name with no safe (i.e. ascii) characters would lead to file_name() returning an empty string, and the downloaded file being simply `txt` addresses PennyDreadfulMTG#13238
oh, i missed that anyascii is already a dependency; opened a new PR |
Reported on Discord by @bakert
The text was updated successfully, but these errors were encountered: