Last modified: 2009-07-27 00:46:34 UTC
Created attachment 6389 [details] Patch against r53755 When the upload API is used to make an asynchronous upload from a url, any boolean parameters in the original request will be treated as "true" when the download completes and the upload is processed; in particular, this means asynchronous uploads always act as if ignorewarnings were specified. The problem is that the API (due to using MediaWiki's WebRequest::getCheck) considers only whether a boolean parameter exists and not what value it might have, and the FauxRequest passed by the download-complete handler likely has all boolean parameters set (to true or false). One possible fix is to filter out those false boolean parameters before creating the FauxRequest. The attached patch does just that.
Make sense patch applied in r53792