-
Notifications
You must be signed in to change notification settings - Fork 34
Description
I'm developping a sort of plugin to upload gcodes files directly to DWC after slicing and I noticed DWC is replacing some special characters by a space instead of just escaping them.
For example, a filename Raspberry_Pi_B+_Sleeve.gcode would become Raspberry_Pi_B _Sleeve.gcode
Even if I ulrencoding the filename, the "+" gets replaced by a space char.
So while trying to deal with that, I noticed if I double urlencode, the filename stays Raspberry_Pi_B+_Sleeve.gcode (which is fine because it's a valid filename).
So it means I can get rid of the escaping done on DWC => Maybe it could be a security issue ?
BTW, the file is listed at Jobs but I can't remove it (which is a bit hilarious). It says the file is not found.
The only way to remove the file is from the shell using SSH.
I can also start printing but it fails to read the file info.
I'm trying to find what cause this behavior in your code but for now I just found some encodeURIComponent() but still not found which function is escaping the filenames.