Commit graph

3857 commits

Author SHA1 Message Date
Alexander Mashin 3023f55605 T177134: Nulls passed to preg_match in Cite
Line 334 of Cite/includes/Cite.php contains two preg_match () calls. The subject lines for them are produced by Cite::refArgs () and are set to null or false when no name or follow attribute is provided in the <ref></ref> tag.

However, preg_match () is supposed to accept only strings as its subject, and the nowhere in the documentation it is said that it is nullable.

At least, in HHVM 3.12 this causes an exception.

The enclosed patch adds simple checks making sure that preg_match () is not called when $key or $follow are null or false.

Change-Id: I3e00d31d6bf216271ace7e851d88c68c4fd5ed00
2017-10-11 17:01:37 +00:00
Translation updater bot 7ba81b0ede Localisation updates from https://translatewiki.net.
Change-Id: I273ba905bb1b4f5ff02e95bac054af7ab60b6495
2017-10-09 22:43:01 +02:00
Umherirrender 0802a73cae Improve some parameter docs
Change-Id: I7d50eaabfba309a62d1dbd16ded0cbcab3beb82f
2017-10-06 21:22:30 +02:00
Translation updater bot ed3fed14ab Localisation updates from https://translatewiki.net.
Change-Id: I63c6dceaa5cf0ade85b70c15e8284c54308ed03a
2017-10-05 22:32:10 +02:00
Translation updater bot 547b2e9e78 Localisation updates from https://translatewiki.net.
Change-Id: Ieac60c5c3fa65a81e61b30a7b605f11c3c7fd1ef
2017-10-04 22:32:26 +02:00
Arlo Breault 185b5c57c0 Sync up with Parsoid citeParserTests.txt
This now aligns with Parsoid commit 7ec1f8369ef2e620858b40eadb7c43f1c4fa6d3d

Change-Id: I0e65d14ace2c0420fccc407eceae0f33ae1f1e06
2017-10-04 13:19:19 -04:00
jenkins-bot d0199aaf53 Merge "Use HTML5 id attributes; remove use of deprecated Sanitizer::escapeId()" 2017-10-03 22:23:42 +00:00
Translation updater bot 08b6694c22 Localisation updates from https://translatewiki.net.
Change-Id: I3655fcd03416eef02bd17d746c299eb3e92b2727
2017-10-02 22:44:18 +02:00
Translation updater bot 2adbc6f2e2 Localisation updates from https://translatewiki.net.
Change-Id: I1843579c8072b38511bbac363f37f82a371b95b8
2017-10-01 22:21:56 +02:00
Translation updater bot 80545d748c Localisation updates from https://translatewiki.net.
Change-Id: I7261bbefe9476d9aed4f036bb03848d36f6dd314
2017-09-30 22:33:50 +02:00
Translation updater bot cc0125f031 Localisation updates from https://translatewiki.net.
Change-Id: I9b993279a3742caada29af1f9ecdc6eee35d784e
2017-09-27 22:19:42 +02:00
L10n-bot 71b3710bbc Merge "Localisation updates from https://translatewiki.net." 2017-09-26 20:31:58 +00:00
Translation updater bot e8fbfe9baa Localisation updates from https://translatewiki.net.
Change-Id: I93701a44726b7d433421e5da0eaa5f3160909b4c
2017-09-26 22:31:25 +02:00
James D. Forrester 9764bbb04e Replace constructive with progressive UI flag
Change-Id: I0edfb7ad13b12a0695f6cdc4afc9afcc82265183
2017-09-26 15:35:55 -04:00
Translation updater bot bf1d4dffe4 Localisation updates from https://translatewiki.net.
Change-Id: Ie93e1a70a87d1c9f9a2520b8016524ba66ca59d0
2017-09-25 22:28:18 +02:00
Translation updater bot 8b4e488cce Localisation updates from https://translatewiki.net.
Change-Id: Ia0ab8b92fc7931ccb9bd0ffdeff88b99395dc09d
2017-09-24 22:33:10 +02:00
libraryupgrader 1f80983036 build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: I24d08b59607bc2db8729961b708ba1de77ba4dcb
2017-09-24 05:21:03 +00:00
Translation updater bot 2d217a91d1 Localisation updates from https://translatewiki.net.
Change-Id: I38697dcf69eaf508b61f79e42a76472c93a5aff6
2017-09-23 22:30:22 +02:00
Translation updater bot 62dbdc58bd Localisation updates from https://translatewiki.net.
Change-Id: I555280994b17696a397eab35a021661ebd7c0cf9
2017-09-22 22:48:13 +02:00
Translation updater bot 3cad9ceb3c Localisation updates from https://translatewiki.net.
Change-Id: I902e23bac23797d14e458dd04eb72faac6bd041c
2017-09-21 22:33:56 +02:00
Translation updater bot 20c240037d Localisation updates from https://translatewiki.net.
Change-Id: I4bccbafcd7a4a184e074dbed81204b62f0cfb0cf
2017-09-20 22:40:20 +02:00
jenkins-bot e2ebd2352c Merge "Follow-up I1e0ae39: Set isResponsive on new ref lists" 2017-09-19 22:00:01 +00:00
Translation updater bot 065cc6a87a Localisation updates from https://translatewiki.net.
Change-Id: I3095f0d6be996c742fc3bbe372fce6f8cb32c2b6
2017-09-19 22:46:55 +02:00
Ed Sanders aad7227850 Follow-up I1e0ae39: Set isResponsive on new ref lists
Change-Id: Icd51637b28b44963eddd5d43323dbda329c6a2fc
2017-09-19 21:17:52 +01:00
C. Scott Ananian 14459c226b Use HTML5 id attributes; remove use of deprecated Sanitizer::escapeId()
When using HTML5 ids, we need to take greater care to properly escape the
id (or derived strings) before passing them back through
Parser::recursiveTagParse().

Bug: T176170
Change-Id: I89a4f8ba24b867f2d5ccdc2bf9a4312ab9b385a9
2017-09-19 15:42:41 -04:00
Ed Sanders a3a4bd945b VE: Support 'responsive' attribute
Bug: T53260
Change-Id: I1e0ae39e8c30653b7ba0f537723a4bcd79ac3162
2017-09-19 17:03:39 +01:00
Ed Sanders a024a7d2c6 Debounce reference list updates
Ideally update wouldn't be called multiple times
for simple transactions, but this should prevent
unnecessary updates if that does happen.

Bug: T176066
Change-Id: I1e7a21c19cee7d50ca160749f243c57f2fb08bab
2017-09-18 14:08:48 +00:00
Translation updater bot 7f7206adda Localisation updates from https://translatewiki.net.
Change-Id: I5bacc17aed2867efb41b240f0db18e7de6ec3d2e
2017-09-17 22:20:15 +02:00
Translation updater bot bfc7616240 Localisation updates from https://translatewiki.net.
Change-Id: I9af82ed85fa586dd248678c42ec2c96ca5190bf0
2017-09-15 22:26:40 +02:00
Translation updater bot 0bc5bd11e0 Localisation updates from https://translatewiki.net.
Change-Id: I77f312b1f5c6f87b2bf36ecab83f5254b0de9bcb
2017-09-14 23:10:40 +02:00
Translation updater bot 6ee990a69d Localisation updates from https://translatewiki.net.
Change-Id: Ifa656e06e7b6ea20538e6d1b3a18cce814409ace
2017-09-13 22:33:12 +02:00
Translation updater bot 1fe05b9f4e Localisation updates from https://translatewiki.net.
Change-Id: I2e1a5693aeebae87a6e33d5337c4c1c145c5ab3b
2017-09-12 22:27:53 +02:00
Arlo Breault d465b4e001 API: Expose $wgCiteResponsiveReferences via meta=siteinfo
Bug: T159894
Change-Id: I2404999ab11b5cf7b740ae43696c4676ab1b6d22
2017-09-11 23:04:25 -04:00
Translation updater bot 40000ba823 Localisation updates from https://translatewiki.net.
Change-Id: I61553cec28c5a9d667069e714d128e659f1bbfb3
2017-09-10 22:20:53 +02:00
Translation updater bot 4e58934c70 Localisation updates from https://translatewiki.net.
Change-Id: I594d359f38d8cc726252baff1595d7b6a0ac8dbf
2017-09-09 22:26:52 +02:00
Translation updater bot 42cdf7c5de Localisation updates from https://translatewiki.net.
Change-Id: I32a49721a083732a5b4c355607bfdc1d031dec0a
2017-09-08 23:55:16 +02:00
Translation updater bot 7aa9ba8c85 Localisation updates from https://translatewiki.net.
Change-Id: I1203eb042d5ba6c98b386638ef5ba0c9f87739db
2017-09-07 23:17:47 +02:00
Translation updater bot 88f2174dbe Localisation updates from https://translatewiki.net.
Change-Id: I687759dbfc9e4d0af8cff2cc74fdcbf6624f4bb7
2017-09-06 22:37:22 +02:00
Translation updater bot 83f3ac5487 Localisation updates from https://translatewiki.net.
Change-Id: I6a5fb8f2096993d012d1ae731a9d82b35648b9f3
2017-09-05 22:40:22 +02:00
jenkins-bot 8b51182b13 Merge "VisualDiff: Show less information about ref nodes" 2017-09-05 13:27:38 +00:00
Thalia ed8b563add VisualDiff: Show less information about ref nodes
If a ref node is highlighted as changed because its index
has changed (e.g. because an earlier reference was inserted
or removed), describe this more elegantly.

Bug: T170235
Bug: T171377
Change-Id: I2513bb82099a92529516e4e217e61a2d0a2dd43b
2017-09-05 14:01:39 +01:00
Translation updater bot 78da064f38 Localisation updates from https://translatewiki.net.
Change-Id: I8ab67267d8ee04c315ad13cb3edb1464d0afe966
2017-09-04 22:26:54 +02:00
Translation updater bot ec431a92e7 Localisation updates from https://translatewiki.net.
Change-Id: I402cfd9516cf56f6491a66888fd3bb8e0ec24165
2017-09-03 08:50:48 +02:00
Max Semenik 14b17e8c32 DB_SLAVE -> DB_REPLICA
Change-Id: I3e949fcf15b44ee199830df19f6db039a704b450
2017-09-01 17:06:45 -07:00
libraryupgrader 7b9aeb77be build: Updating mediawiki/mediawiki-codesniffer to 0.12.0
Change-Id: I5d41868359d6234f99029d01a6fb9f166a3789fe
2017-09-01 04:45:59 +00:00
Translation updater bot 122cae25c9 Localisation updates from https://translatewiki.net.
Change-Id: I06f7028bc9c21d4554fab9929707274b9a101073
2017-08-29 08:39:01 +02:00
jenkins-bot dbdd7706e9 Merge "Add 'references' class to reflist node" 2017-08-28 16:55:49 +00:00
Ed Sanders cec36fed6e Add 'references' class to reflist node
On en.wiki and others, this is the class that has
the 90% font size.

Change-Id: I23aaeefb2c42643be7c0daef99cdf89132b93308
2017-08-28 17:07:52 +01:00
Translation updater bot bb5d9d4e50 Localisation updates from https://translatewiki.net.
Change-Id: Iff32aa6a20fc8fda675e5c8b40db2317420197f6
2017-08-28 11:57:33 +02:00
Translation updater bot 989afcd341 Localisation updates from https://translatewiki.net.
Change-Id: Icbbacf5a285833259261a125d2d601febcd5607b
2017-08-26 08:43:34 +02:00