owncloud/core — pull request #456 by blizzz (2012-11-15 17:30:56+00:00)
Title: Fix new from url

Fixes #333
Main problem is, that URLs are created in the style
> http://owncloud.server/?app=files&getfile=ajax/newfile.php?dir=...%2Ffoo&source=https...&filename=...

i.e. with a second data string introduced with a second ? which will of course fail.

A plea of mine: i have no idea wherelse EventSource is being used, please make sure that it really really is OK to simply replace ? with &. Otherwise we introduce an extra check there.