https://bugzilla.wikimedia.org/show_bug.cgi?id=30953

Jack Phoenix <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from Jack Phoenix <[email protected]> 2012-05-15 
03:45:06 UTC ---
In my defense the patch I posted here worked perfectly...when I posted it.
Which was many, many months ago.

The big deal here was that as of MediaWiki 1.19.0, the SpecialUpload class (the
base class for Special:Upload, which Special:UploadAvatar also extends, because
extending is easier than duplicating lots and lots of code) unconditionally
requires that the edit token is present. UploadAvatar was not passing the edit
token as it wasn't required before, and what you were seeing was an upload
silently failing.

I've fixed this in SVN r115379 by applying the patch I posted here and by
copypasting a few lines of code from includes/HTMLForm.php. Nasty, but it did
the trick.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to