wiki.techinc.nl/tests/phpunit/includes
Timo Tijhof d753e330a2 OutputPage: Ignore protocol-relative urls in transformResourcePath()
transformResourcePath is only supposed to be called with something
that starts with a '/' (absolute path from document root).

While the primary caller (CSSMin) only calls this method if the path
makes sense as a local file path, ResourceLoaderSkinModule did not,
and wgLogo may be set to a full url that includes a domain.

While chance made it so that protocol-including urls were already
discarded, protocol-relative urls were mistaken for being a path
inside the file system root with a duplicate slash (e.g.
'//tmp/foo.txt', as 'foo.txt' in /fmp, instead of '/foo.txt' at
http://tmp).

This should be fixed upstream in the wikimedia/relpath library,
but workaround it for now since it really shouldn't be called
with urls in the first place.

Bug: T155310
Change-Id: I9b063f1219ddeca5cc2c8a48832cdf8c9eaffe58
2017-01-18 18:15:01 +00:00
..
actions
api Remove unused imports from test classes 2017-01-10 11:49:58 +01:00
auth Merge "Prevent login-only local password provider from removing passwords" 2016-11-30 16:39:12 +00:00
cache Merge "Don't fallback from uk to ru" 2016-11-29 08:00:43 +00:00
changes Remove unused imports from test classes 2017-01-10 11:49:58 +01:00
composer
config Get ConfigFactory & MainConfig from MediaWikiServices 2016-11-23 00:12:38 +00:00
content Create fields & data for image/file data indexing 2016-09-26 23:42:06 -07:00
context
db Replace mocks of DatabaseMysql by DatabaseMysqli 2016-12-31 12:52:16 +01:00
debug Rewrite logstash key conflict warning from I6677dbf6 2016-11-29 11:14:08 +00:00
deferred Make DeferredUpdates able to run DataUpdates 2016-09-02 04:12:50 +00:00
diff
exception Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
externalstore
filebackend Merge "FSFile and TempFSFile cleanups" 2016-09-20 23:21:30 +00:00
filerepo Remove left-over references from comments to removed FSRepo class 2017-01-07 16:00:07 +00:00
GlobalFunctions Remove empty lines from PHP and JavaScript comment blocks 2016-12-09 09:01:06 +00:00
htmlform Merge "HTMLForm: Allow returning Message objects from HTMLFormField::validate()" 2016-11-25 09:11:07 +00:00
http Clean up http classes a bit 2016-11-30 19:00:44 -08:00
import Get ConfigFactory & MainConfig from MediaWikiServices 2016-11-23 00:12:38 +00:00
installer DatabaseUpdater: Stop inserting junk into 'updatelog' every time the updater runs 2016-11-30 20:13:30 +00:00
interwiki Removed deprecated usages of Interwiki methods in core 2017-01-10 12:19:31 +02:00
jobqueue
json Remove spaces after cast operators 2016-10-31 13:57:39 +00:00
libs Remove Atomic methods from ConnectionManagers 2016-12-02 04:50:29 +00:00
linker Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
logging bidi-isolate usernames in Linker::userLink 2016-08-31 17:44:06 -07:00
mail
media Remove left-over references from comments to removed FSRepo class 2017-01-07 16:00:07 +00:00
objectcache objectcache: Disable RedisBagOStuff constructor in unit test 2016-07-25 16:55:36 +01:00
page WikiPage::getText() was removed 2016-12-12 18:51:37 +00:00
pager Partially reverting I8e684f06 to restore some legacy behavior 2016-09-13 18:32:47 -07:00
parser Use namespaced ScopedCallback 2016-10-17 15:46:05 -07:00
password
poolcounter
registration registration: Always specify version number in extension.schema.json file 2016-12-16 11:47:15 -08:00
resourceloader resourceloader: Don't let module exception break startup 2016-12-15 23:25:57 +00:00
search Rank aliases in search in order they appear in the messages file. 2016-11-29 15:15:42 -08:00
Services
session Remove unused imports from test classes 2017-01-10 11:49:58 +01:00
site Add more specific Site[] type hints to SiteStore classes 2017-01-11 16:39:13 +00:00
skins SkinTemplateTest typofix 2016-08-11 13:54:05 -07:00
specialpage Merge "Revert "Don't construct SpecialPages twice"" 2016-11-10 06:00:17 +00:00
specials Allow to define exceptions for Special:UncategorizedCategories on-wiki 2017-01-11 17:51:19 +00:00
tidy Merge "Enable additional balancer tests (those starting with <!DOCTYPE html>)" 2016-07-21 17:27:59 +00:00
title Use more short array syntax in comments (/tests/) 2016-07-10 17:23:29 +02:00
upload API: i18n for warnings and errors 2016-12-06 10:20:48 -05:00
user Remove cols and rows preferences 2017-01-09 21:56:57 +11:00
utils Replace mocks of DatabaseMysql by DatabaseMysqli 2016-12-31 12:52:16 +01:00
BlockTest.php Add the concept of "system blocks" 2016-12-16 12:30:03 -05:00
CollationTest.php
DiffHistoryBlobTest.php
EditPageTest.php Make DeferredUpdates able to run DataUpdates 2016-09-02 04:12:50 +00:00
ExportTest.php DumpStringOutput: Rename getOutput() to __toString() 2016-07-14 06:28:16 -04:00
ExtraParserTest.php
FauxRequestTest.php Clean up tests for FauxRequest/WebRequest 2016-09-09 15:35:19 -07:00
FauxResponseTest.php
FormOptionsInitializationTest.php Remove "Generated by PHPUnit" comments in 3 files 2016-12-13 03:20:04 +00:00
FormOptionsTest.php Remove "Generated by PHPUnit" comments in 3 files 2016-12-13 03:20:04 +00:00
GitInfoTest.php Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
HooksTest.php
HtmlTest.php Html: Unblacklist HTML5 form validation attributes 2017-01-10 14:53:08 -08:00
LicensesTest.php
LinkerTest.php bidi-isolate usernames in Linker::userLink 2016-08-31 17:44:06 -07:00
LinkFilterTest.php Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
MediaWikiServicesTest.php Merge "Add Parser to MediaWikiServices" 2016-10-28 17:53:30 +00:00
MediaWikiTest.php Revert "MediaWiki.php: Redirect non-standard title urls to canonical" 2016-09-09 21:45:27 +00:00
MediaWikiVersionFetcherTest.php
MergeHistoryTest.php Whenever possible, reuse User objects in unit tests 2016-05-26 20:42:31 +00:00
MessageTest.php wfMessage: use Message::params() to handle all the message parameters 2016-12-20 19:22:54 +00:00
MovePageTest.php
MWNamespaceTest.php Remove "Generated by PHPUnit" comments in 3 files 2016-12-13 03:20:04 +00:00
MWTimestampTest.php Split out ConvertableTimestamp class 2016-09-16 03:00:09 +00:00
OutputPageTest.php OutputPage: Ignore protocol-relative urls in transformResourcePath() 2017-01-18 18:15:01 +00:00
PagePropsTest.php Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
PathRouterTest.php
PreferencesTest.php
PrefixSearchTest.php Rank aliases in search in order they appear in the messages file. 2016-11-29 15:15:42 -08:00
RevisionStorageTest.php Revert "If rev_content_model is null, use page_content_model." 2016-07-10 22:58:36 +00:00
RevisionStorageTestContentHandlerUseDB.php
RevisionTest.php
SampleTest.php Update weblinks in comments from HTTP to HTTPS 2016-11-07 15:24:46 +01:00
SanitizerTest.php Update weblinks in comments from HTTP to HTTPS 2016-11-07 15:24:46 +01:00
SanitizerValidateEmailTest.php
SiteConfigurationTest.php
StatusTest.php tests: Fix invalid @covers value in StatusTest.php 2016-09-22 18:29:28 +01:00
TemplateCategoriesTest.php Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
TemplateParserTest.php
TestingAccessWrapper.php
TestingAccessWrapperTest.php
TestLogger.php Optionally collect context in TestLogger 2016-11-04 03:54:12 +00:00
TestUser.php Make deprecated TestUser properties private 2016-06-22 15:43:54 +00:00
TestUserRegistry.php Whenever possible, reuse User objects in unit tests 2016-05-26 20:42:31 +00:00
TimeAdjustTest.php
TitleArrayFromResultTest.php
TitleMethodsTest.php
TitlePermissionTest.php Add the concept of "system blocks" 2016-12-16 12:30:03 -05:00
TitleTest.php mw.Title: Correct handling of Unicode whitespace and bidi control characters 2016-08-31 00:04:29 +00:00
WatchedItemIntegrationTest.php Merge "Remove missed WatchedItem::resetNotificationTimestamp in test" 2016-07-28 10:22:59 +00:00
WatchedItemQueryServiceUnitTest.php API: i18n for warnings and errors 2016-12-06 10:20:48 -05:00
WatchedItemStoreIntegrationTest.php
WatchedItemStoreUnitTest.php WatchedItemStore::setNotificationTimestampsForUser(): Allow clearing timestamp 2016-12-16 14:31:24 -05:00
WatchedItemUnitTest.php Remove unused deprecated WatchedItem methods 2016-07-26 10:52:31 +00:00
WebRequestTest.php Move IP::isConfigured/TrustedProxy() to ProxyLookup service 2016-09-21 20:02:09 -07:00
WikiMapTest.php Improve WikiMap::getWikiReferenceFromWgConf() 2016-07-06 14:20:07 -04:00
WikiReferenceTest.php
XmlJsTest.php
XmlSelectTest.php Update weblinks in comments from HTTP to HTTPS 2016-10-11 17:25:10 +00:00
XmlTest.php Removed Xml::escapeJsString() 2016-12-02 00:31:59 -08:00