Make : invalid in filenames in the Notebook JS code.#1815
Conversation
|
This addresses #1781. |
|
Wouldn't it be safer to make a notebook whitelist caracters (a-zA-Z0-9_.)? |
|
Unicode should be fine, and we definitely shouldn't force ascii. What should happen is failures to save with a particular name should be well-represented to the user, and not result in data-loss (certainly a failed rename should not result in removal of the original). |
|
I was thinking more of problem that can arrise with shell, when using space,$ and some other caractères. |
But the notebook (and Python in general) has no problem at all with such things. If users are doing lots of bash scripting with their notebook files, they might choose space-less ASCII names for convenience. But there is no reason we should enforce something like that.
|
Make : invalid in filenames in the Notebook JS code. This only prevents : in the filenames on the JavaScript side of things. Handling this on the server side will be a separate issue that is related to other open issue. I will update those to reflect this. closes #1781
Make : invalid in filenames in the Notebook JS code. This only prevents : in the filenames on the JavaScript side of things. Handling this on the server side will be a separate issue that is related to other open issue. I will update those to reflect this. closes ipython#1781
The JS client code was changed in this PR: ipython/ipython#1815 (commit: ellisonbg/ipython@e264b9b)
This only prevents
:in the filenames on the JavaScript side of things. Handling this on the server side will be a separate issue that is related to other open issue. I will update those to reflect this. Covers #1781.