joomla/joomla-cms — pull request #5238 by jms2win (2014-11-28 17:26:14+00:00)
Title: Bug in Content-Disposition - wrong filename

The filename field present in the Content-Disposition can be followed by other fields.
In this case, the target is wrong.

Here it is an example of Content-Disposition value.
attachment; filename="jms2win_checkupdates_1336.zip"; modification-date="Fri, 28 Nov 2014 13:57:42 +0100"; size=675299;

The bug is that the target value with the previous implementation were
jms2win_checkupdates_1336.zip"; modification-date="Fri, 28 Nov 2014 13:57:42 +0100"; size=675299
instead of return
jms2win_checkupdates_1336.zip

This fix should be also applied in J2.5 that were modified recently with the code that introduced this bug