Commit graph

75 commits

Author SHA1 Message Date
Translation updater bot e03f781a4e Localisation updates from https://translatewiki.net.
Change-Id: I5c72f130a7093a28c899daf2c970d165a95124cc
2017-10-31 22:44:34 +01:00
Translation updater bot c9f3d1cc0c Localisation updates from https://translatewiki.net.
Change-Id: I9dad0f21bb3235a7d87c2920de67055b4a264c53
2017-10-30 22:52:17 +01:00
Translation updater bot 95d4d152b9 Localisation updates from https://translatewiki.net.
Change-Id: I766cb1810675213041a2cf656a56782c0aac5075
2017-10-25 23:03:11 +02:00
Translation updater bot fd1eb9d093 Localisation updates from https://translatewiki.net.
Change-Id: I54cd6512ae925cf2f5b12d64cdfc8e73a86c10f3
2017-10-23 23:43:19 +02:00
libraryupgrader be81f3de99 build: Updating mediawiki/mediawiki-codesniffer to 14.1.0
And moved phpcs.xml to .phpcs.xml (T177256).

Change-Id: I02554f10c64f11b2b61ce08f2edf6af2287883c4
2017-10-21 04:31:06 +00:00
Translation updater bot 1f503df948 Localisation updates from https://translatewiki.net.
Change-Id: I44f3f2376af0b8dc5dabde398e29097ec1932de1
2017-10-18 22:50:38 +02:00
Ed Sanders 92291a8778 build: Update eslint
Change-Id: I690ef5856e2dbbd86522c01aea94e74a8b69a7e6
2017-10-03 16:14:25 +01:00
Translation updater bot 5a91044817 Localisation updates from https://translatewiki.net.
Change-Id: I197aa1732b7255050366e80adc561d346fa11dfc
2017-09-26 22:52:37 +02:00
Translation updater bot ee44d485e3 Localisation updates from https://translatewiki.net.
Change-Id: I5f152984857be7174c33e948e361fb6f7b4973d1
2017-09-25 22:51:25 +02:00
libraryupgrader b833bd839a build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: Ic6bfe73efbff856600302d155fbeb0ba38923b55
2017-09-24 05:33:54 +00:00
Translation updater bot 0a8bcdf64b Localisation updates from https://translatewiki.net.
Change-Id: I2a159ea024357ad7da0b5069e94c596530c1f73b
2017-09-23 22:55:05 +02:00
Translation updater bot d0c9499ee2 Localisation updates from https://translatewiki.net.
Change-Id: Ifd174aa3ea23f843c617bb7541d95232c5ebb84e
2017-09-22 23:26:39 +02:00
Translation updater bot e54dea53bc Localisation updates from https://translatewiki.net.
Change-Id: Ifb52201706b9acb0662d18e9837e0755ba3a96fd
2017-09-19 23:14:45 +02:00
Translation updater bot b1e11d9462 Localisation updates from https://translatewiki.net.
Change-Id: I5932794d5df164adcf4727ac6f5f9a67172b432a
2017-09-03 22:38:22 +02:00
libraryupgrader e160cb66b9 build: Updating mediawiki/mediawiki-codesniffer to 0.12.0
The following sniffs are failing and were disabled:
* MediaWiki.Files.ClassMatchesFilename.NotMatch

Change-Id: Iccb7bd9026e92cca5b505fa62b4fbf5aa6e56d94
2017-09-01 04:57:51 +00:00
Translation updater bot 166c7befc9 Localisation updates from https://translatewiki.net.
Change-Id: Ic92ec4f2d6dc80a47a899087ac43d28d4dcc4bbd
2017-08-25 10:01:32 +02:00
Translation updater bot a9a0d47666 Localisation updates from https://translatewiki.net.
Change-Id: Ifdee30394460825a13dbff25f86932cb9ceb1dc3
2017-08-24 09:44:18 +02:00
Translation updater bot 7eeac284f3 Localisation updates from https://translatewiki.net.
Change-Id: Ie525c6eba0b57cd246ccd683b507418693378648
2017-08-23 09:39:36 +02:00
Kunal Mehta d6257bd2ff build: Updating mediawiki/mediawiki-codesniffer to 0.11.0
Change-Id: I59ba41e53abae528f5a62ae172b0db0c0f60b35f
2017-08-11 00:34:47 -04:00
Translation updater bot 4fe3d3103a Localisation updates from https://translatewiki.net.
Change-Id: Ie83583fdc8cc4500058b83bfe23b55ae2819d1e4
2017-08-01 23:02:44 +02:00
Translation updater bot 1ca9082a64 Localisation updates from https://translatewiki.net.
Change-Id: Ieddc7d73c5f4f8445fd24e1fe2df95df342fe333
2017-07-24 23:17:00 +02:00
Kunal Mehta 119ccaf5fc build: Updating mediawiki/mediawiki-codesniffer to 0.10.1
The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingReturn

Change-Id: I8fdffa68dfd23e17b623042761057f8c952f0dce
2017-07-23 00:39:22 -07:00
Translation updater bot c224cc3f8a Localisation updates from https://translatewiki.net.
Change-Id: I5135a393bb6c23664439ae848abef4108d91f3ee
2017-07-14 22:53:36 +02:00
Translation updater bot 5f3534d8de Localisation updates from https://translatewiki.net.
Change-Id: Iabafc5ee08786b957f3083f80278389e290032f4
2017-07-13 22:58:27 +02:00
Kunal Mehta d519bda71d build: Updating mediawiki/mediawiki-codesniffer to 0.10.0
Change-Id: I16caa0c4247193d152ba52761e96a6578dc57758
2017-07-01 01:43:32 -07:00
Translation updater bot 4a17994d3d Localisation updates from https://translatewiki.net.
Change-Id: I741326bb395ae13cb51f0ee782e221e0c53627e2
2017-06-28 23:13:56 +02:00
Kunal Mehta 612524a641 build: Updating mediawiki/mediawiki-codesniffer to 0.9.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment
* MediaWiki.Commenting.FunctionComment.MissingReturn
* MediaWiki.FunctionComment.Missing.Protected
* MediaWiki.FunctionComment.Missing.Public
* MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment

Change-Id: Ic998e3f2a791bf987f826d6dd0e92a8de24be5b7
2017-06-20 00:22:54 -07:00
Translation updater bot 0731af89df Localisation updates from https://translatewiki.net.
Change-Id: I3a52380abf2fb3ba3cbccf156c208853e5beda83
2017-06-16 22:58:03 +02:00
Brad Jorsch 5fd77aa0d7 Update css-sanitizer to v1.0.2
Also fold a unit test into the normal function since we don't have to
have two valid responses based on css-sanitizer version.

Change-Id: I107c8b911781924ce9cc0730257243b9cb1592a6
2017-06-13 17:09:48 -04:00
jenkins-bot fd29884a23 Merge "SECURITY: Reject stylesheets containing "</style"" 2017-06-13 21:09:40 +00:00
Translation updater bot 74b471c97f Localisation updates from https://translatewiki.net.
Change-Id: I8c956bb797fd10c1593dfa145f31fd352226d2ee
2017-06-13 22:48:29 +02:00
Brad Jorsch b04bd96f58 SECURITY: Reject stylesheets containing "</style"
Premature closing of the style block === HTML injection vector.

Bug: T167812
Change-Id: I34c5f200c689a56d340bce70ffebbf58d27b499e
2017-06-13 11:52:07 -04:00
Translation updater bot 31515af0c2 Localisation updates from https://translatewiki.net.
Change-Id: I60da77752dcffb26bade66305df5dc5cccaae8db
2017-06-12 22:49:41 +02:00
Translation updater bot 2c436aa977 Localisation updates from https://translatewiki.net.
Change-Id: Ia9a9f6e484982ee83550d11a72bad90b2fe7f88e
2017-06-11 22:44:54 +02:00
Translation updater bot 1cef13e3d7 Localisation updates from https://translatewiki.net.
Change-Id: I219a5a4c5fa9889fc02ae8c7c8b01d49da297d7a
2017-06-11 00:36:24 +02:00
Translation updater bot 190acf1fcf Localisation updates from https://translatewiki.net.
Change-Id: Ib0f38b8854aa343bb59c8d0999f5150252cfe756
2017-06-09 23:01:14 +02:00
Translation updater bot a48d893d00 Localisation updates from https://translatewiki.net.
Change-Id: I3a170e4c6b9f8013ac953fa4592589222e80dca8
2017-06-08 23:13:50 +02:00
Translation updater bot 949b5f9190 Localisation updates from https://translatewiki.net.
Change-Id: I373dafb21c9b5363840086c27052815903ae70fc
2017-06-07 22:53:59 +02:00
jenkins-bot 7b28582fcd Merge "Use wikimedia/css-sanitizer, and rewrite the hooking" 2017-06-07 15:37:04 +00:00
Brad Jorsch b301a30abf Use wikimedia/css-sanitizer, and rewrite the hooking
wikimedia/css-sanitizer provides a real CSS parser, which should be
safer than poking at things with regular expressions.

Instead of the strange hybrid model that tried to both process inline
CSS and save CSS when the template is saved, it now looks for
<templatestyles src="Title" /> during the parse to do all the
transclusion of styles.

The output method is "<style> tags in the body", pending someone
implementing T160563.

It now also registers a "sanitized-css" content model, which should pick
up the CSS syntax highlighting and will validate the submitted CSS on
submit and prevent a save if it's not valid.

This patch also takes advantage of LGPL-2.x § 3 to relicense the
extension as GPL-2.0+, although at this point none of the LGPL code
remains anyway.

Bug: T133408
Bug: T136054
Bug: T135788
Bug: T135789
Change-Id: I993e6f18d32a43aac8398743133d227b05133bbd
Depends-On: If4eb5bf71f94fa366ec4eddb6964e8f4df6b824a
2017-06-07 15:14:09 +00:00
Amir Sarabadani 64d4d1fbfa Add CODE_OF_CONDUCT.md
Bug: T165540
Change-Id: I74c42ecb002076c1198bff00ce241ada23c4df98
2017-06-07 16:16:47 +04:30
James D. Forrester 7ba77fd48f build: Replace jshint and jscs with eslint; bump other devDeps
grunt                  0.4.5  →  1.0.1
 grunt-banana-checker   0.5.0  →  0.6.0
 grunt-jsonlint         1.0.7  →  1.1.0

Change-Id: Ic59fd7fa96d7f18fd65141c1b4fd4f6baccc6d80
2017-05-25 17:31:35 +02:00
Antoine Musso 0fe99941e1 build: add jakub-onderka/php-console-highlighter
Highlight PHP code when parallel-lint fails

Change-Id: Ie7582baa805457a0445a119bfd5fb859f693e51f
2017-05-05 21:40:02 +02:00
Umherirrender de34a26818 Add fix phpcbf command to composer.json
This allows to use the phpcbf easily

Change-Id: Ib8fb40c6fcb94215ea94cd0b2b7b6272309425e4
2017-04-29 13:07:12 +02:00
Umherirrender 95deb18b3f Use tabs to indent in json
Change-Id: Ifba40f1902bee0ce50fdb1296b5603a5117aa8cf
2017-03-23 19:31:51 +01:00
Translation updater bot 3191102c54 Localisation updates from https://translatewiki.net.
Change-Id: I2c99d7934b23d80a1a151705e54979c09f41e9f8
2017-01-01 10:13:14 +01:00
Translation updater bot 9ab859863c Localisation updates from https://translatewiki.net.
Change-Id: I994cfaf919031c04aae3b8081062d67c3612193c
2016-12-12 22:41:07 +01:00
Translation updater bot da0633a51f Localisation updates from https://translatewiki.net.
Change-Id: I72b75671491612b1f4be8878df2397fb112f9a98
2016-12-02 22:20:22 +01:00
Translation updater bot d8225445b7 Localisation updates from https://translatewiki.net.
Change-Id: I3cea41c41af9e1fa69907ff736e2245232da232d
2016-11-28 22:32:12 +01:00
Reedy 5371436dff Remove unnecessary if
More minor styles

Don't use temporary variable to return

Change-Id: I773ae4405ed98f75dea3984f46c72a1043c2fe8f
2016-10-30 23:18:03 +00:00