# HG changeset patch # User Goffi # Date 1592571405 -7200 # Node ID 9d1c0feba0485fec15a9f442c8909b7bcbdde9df # Parent b56e4c6b13fc537f70451c6b269b681ab678f069 comp file sharing: file paths are now quoted on upload to allow unicode diff -r b56e4c6b13fc -r 9d1c0feba048 sat/plugins/plugin_comp_file_sharing.py --- a/sat/plugins/plugin_comp_file_sharing.py Fri Jun 19 14:55:30 2020 +0200 +++ b/sat/plugins/plugin_comp_file_sharing.py Fri Jun 19 14:56:45 2020 +0200 @@ -195,7 +195,11 @@ # the 2 following headers are not standard, but useful in the context of file # sharing with HTTP Upload: first one allow uploaded to specify the path # and second one will disable public exposure of the file through HTTP - path = request.getHeader("Xmpp-File-Path") or "/uploads" + path = request.getHeader("Xmpp-File-Path") + if path: + path = unquote(path) + else: + path = "/uploads" if request.getHeader("Xmpp-File-No-Http") is not None: public_id = None else: