Commit graph

47 commits

Author SHA1 Message Date
Translation updater bot 14a1f72acb Localisation updates from https://translatewiki.net.
Change-Id: I3a5a341db6c6f93d5970e5f5bee86e3a93311e33
2017-12-05 09:41:52 +01:00
Translation updater bot 5e29310bf1 Localisation updates from https://translatewiki.net.
Change-Id: Iebc75633323c2e92ecf7255665bd5a4a6185bfdd
2017-11-22 22:44:26 +01:00
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
Translation updater bot 1f503df948 Localisation updates from https://translatewiki.net.
Change-Id: I44f3f2376af0b8dc5dabde398e29097ec1932de1
2017-10-18 22:50:38 +02: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
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
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
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
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
Translation updater bot 4a17994d3d Localisation updates from https://translatewiki.net.
Change-Id: I741326bb395ae13cb51f0ee782e221e0c53627e2
2017-06-28 23:13:56 +02:00
Translation updater bot 0731af89df Localisation updates from https://translatewiki.net.
Change-Id: I3a52380abf2fb3ba3cbccf156c208853e5beda83
2017-06-16 22:58:03 +02: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
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
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
Translation updater bot 2e96666b74 Localisation updates from https://translatewiki.net.
Change-Id: I2e754dd3da2633249591fc6b79f847ec9e869924
2016-08-19 22:42:51 +02:00
Translation updater bot 2543c32ac5 Localisation updates from https://translatewiki.net.
Change-Id: I30bb64bc1ac5ac472af015c1b88ea20317b02488
2016-08-07 22:42:06 +02:00
Translation updater bot e877b526fc Localisation updates from https://translatewiki.net.
Change-Id: Id14970c364acfb1c1c15f242440dd7b990b12b21
2016-07-21 23:01:21 +02:00
Translation updater bot 6626d3396b Localisation updates from https://translatewiki.net.
Change-Id: I55a6847b35c8fdbc68aff9b6fa66a209d0a95209
2016-04-22 22:24:41 +02:00
Translation updater bot 37fbd09da5 Localisation updates from https://translatewiki.net.
Change-Id: Icddf99a2ee6ff79e948cd6c7e87cdf006003111f
2016-04-18 22:23:03 +02:00
Translation updater bot eea413648d Localisation updates from https://translatewiki.net.
Change-Id: Iafa8819d1c65d668c03577197f671026732deff9
2016-04-17 22:19:35 +02:00
Translation updater bot a4cea66515 Localisation updates from https://translatewiki.net.
Change-Id: I9981d2cc70a6b6f76fef44f5ae902cccd504b595
2016-04-16 23:15:42 +02:00
Translation updater bot 9ebf227e4e Localisation updates from https://translatewiki.net.
Change-Id: Iecb0616ed66cb6a6dceae5d2fd30626f3b9385de
2016-04-15 22:21:06 +02:00
Coren dfa7e27b5a Linting and slight tweak to parser
- add a tweak to the parser (keep the value tokens in a declaration
  separate in the parsed tree to ease matching at render time
- add error checking to encoding/decoding the templatestyles property
- pick some lint suggested by Brion and Bryan

Change-Id: If60b91e119102c0f0f559fe7e5a4c421c94b7ff4
2016-04-12 15:42:23 +00:00
Raymond b35763edbf Consisteny tweaks: Use lower case chars for message key only
In preparation for adding extension to translatewiki.net

Change-Id: I64fe725ceac7ec1b4d0da9c05e8285cc06278088
2016-04-10 22:49:25 +02:00
Coren 31743445bd TemplateStyles extension prototype
This extension adds a <templatestyles> tag that, when placed
on a template, allows specifying CSS for pages where that
template is transcluded.

Unlike inline styles, the per-template CSS supports rules
with proper selectors, and @media blocks.

THIS VERSION DOES NOT CURRENTLY FILTER DECLARATIONS and is
therefore unsuitable for wikis where unprivileged users should
not be allowed to influcence the pagewide CSS in unrestricted
ways!

Bug: T483
Change-Id: Ibc1cae3079d164f7ac7bcc7c4ded3f02bb048614
2016-04-08 11:08:59 -04:00