https://github.com/joomla/joomla-cms/pull/1527.diff