Recognize CSS/JS redirects with non-ASCII targets
authorKunal Mehta <legoktm@member.fsf.org>
Tue, 30 Oct 2018 02:30:59 +0000 (19:30 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Thu, 1 Nov 2018 06:09:50 +0000 (23:09 -0700)
commit674e486cb5e47c4467b98dd6a961b2ba4787043b
treebe842860c6095baaab2b5fd4ddd44c88716c4c6e
parent102bfd66c84dbb9b690c78ad0c3975b7dc8f1a0a
Recognize CSS/JS redirects with non-ASCII targets

The regex in JavaScriptContent and CssContent was trying to pass
urlencoded stuff to Title::newFromText(), which would fail. Make sure we
urldecode it first.

Bug: T208264
Change-Id: I189c4c308da2875839ad8c1061332500f0e6d244
includes/content/CssContent.php
includes/content/JavaScriptContent.php
tests/phpunit/includes/content/CssContentHandlerTest.php
tests/phpunit/includes/content/CssContentTest.php
tests/phpunit/includes/content/JavaScriptContentHandlerTest.php
tests/phpunit/includes/content/JavaScriptContentTest.php