LoveSeat icon indicating copy to clipboard operation
LoveSeat copied to clipboard

filename attachment not url-encoded

Open Maxima078 opened this issue 10 years ago • 1 comments

Hello,

I noticed attachment name containing special character are not being url-encoded. There is just a string.format(...) : https://github.com/soitgoes/LoveSeat/blob/master/LoveSeat/CouchDatabase.cs#L216

Therefore an attachment name such as 'picture+1' will become 'picture 1' in CouchDB since request = (HttpWebRequest)WebRequest.Create(uri); will replace it by space.

Maxima078 avatar Jan 16 '15 14:01 Maxima078

Good catch. I'll get that fix in sometime today.

On Fri, Jan 16, 2015 at 8:27 AM, Maxima078 [email protected] wrote:

Hello,

I noticed attachment name containing special character are not being url-encoded. There is just a string.format(...) : https://github.com/soitgoes/LoveSeat/blob/master/LoveSeat/CouchDatabase.cs#L216

Therefore an attachment name such as 'picture+1' will become 'picture 1' in CouchDB since request = (HttpWebRequest)WebRequest.Create(uri); will replace it by space.

Reply to this email directly or view it on GitHub https://github.com/soitgoes/LoveSeat/issues/59.

Martin Murphy Whiteboard-IT http://whiteboard-it.com w: (205) 588-7102

soitgoes avatar Jan 16 '15 15:01 soitgoes