Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: f458500cedcb5319f6ba0f8b7c6aa40800c148a3
https://github.com/openSUSE/open-build-service/commit/f458500cedcb5319f6ba0f...
Author: Sascha Peilicke
Date: 2012-01-05 (Thu, 05 Jan 2012)
Changed paths:
M src/backend/BSServer.pm
Log Message:
-----------
[backend] Relaxed URI path component decoding
Previously, uploading files containing (leading, trailing) spaces broke,
because Ruby's CGI.escape method translates ' ' into '+'
(x-www-form-urlencoded from the ancients). The backend correctly
assumes that this shouldn't happen in the URI path (only in the query
string). However, as our API code uses CGI.escape for almost everything
it's easier to not nitpick on this.
Alternatively we would have to use Ruby's URI.escape for path components
and CGI.escape for query string components (lovely, isn't it?).
Fixes bnc#737958
--
To unsubscribe, e-mail: obs-commits+unsubscribe@opensuse.org
To contact the owner, e-mail: obs-commits+owner@opensuse.org