[MediaWiki-commits] [Gerrit] operations/puppet[production]: Add new Apertium pairs: crh-tur and cat-srd
Alexandros Kosiaris has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391511 ) Change subject: Add new Apertium pairs: crh-tur and cat-srd .. Add new Apertium pairs: crh-tur and cat-srd Bug: T178139 Change-Id: I1a8db0210f44fa4db9be45bda6c91bcc26733fad --- M modules/profile/manifests/apertium.pp 1 file changed, 4 insertions(+), 0 deletions(-) Approvals: Alexandros Kosiaris: Looks good to me, approved jenkins-bot: Verified diff --git a/modules/profile/manifests/apertium.pp b/modules/profile/manifests/apertium.pp index 4345fb1..6bf902c 100644 --- a/modules/profile/manifests/apertium.pp +++ b/modules/profile/manifests/apertium.pp @@ -35,6 +35,9 @@ 'apertium-br-fr', 'apertium-ca-it', 'apertium-cat', +'apertium-cat-srd', +'apertium-crh', +'apertium-crh-tur', 'apertium-cy-en', 'apertium-dan', 'apertium-dan-nor', @@ -89,6 +92,7 @@ 'apertium-swe-dan', 'apertium-swe-nor', 'apertium-tat', +'apertium-tur', 'apertium-urd', 'apertium-urd-hin', 'cg3', -- To view, visit https://gerrit.wikimedia.org/r/391511 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I1a8db0210f44fa4db9be45bda6c91bcc26733fad Gerrit-PatchSet: 3 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: KartikMistryGerrit-Reviewer: Alexandros Kosiaris Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] operations/puppet[production]: tools.my.cnf: Replication filter for i_psub
Marostegui has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391513 ) Change subject: tools.my.cnf: Replication filter for i_psub .. tools.my.cnf: Replication filter for i_psub The table s51290__dpl_p.i_psub gets recreated in MEMORY all the time and it reaches the size limit, breaking replication. This needs to be fixed by the user Bug: T180560 Change-Id: I0236ce55bf5aeec797a61e8edb7f7dbdd498b1c2 --- M modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb 1 file changed, 1 insertion(+), 0 deletions(-) Approvals: Marostegui: Looks good to me, approved jenkins-bot: Verified diff --git a/modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb b/modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb index d30fef9..8e581f0 100644 --- a/modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb +++ b/modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb @@ -68,6 +68,7 @@ replicate_wild_ignore_table= s52721\_\_pagecount\_stats\_p.% # T180560 replicate_wild_ignore_table= s51290__dpl_p.i_orphan_candidates +replicate_wild_ignore_table= s51290__dpl_p.i_psub table_open_cache = 5000 table_definition_cache = 4000 -- To view, visit https://gerrit.wikimedia.org/r/391513 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I0236ce55bf5aeec797a61e8edb7f7dbdd498b1c2 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: MarosteguiGerrit-Reviewer: Jcrespo Gerrit-Reviewer: Marostegui Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] operations/puppet[production]: tools.my.cnf: Replication filter for i_psub
Marostegui has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391513 ) Change subject: tools.my.cnf: Replication filter for i_psub .. tools.my.cnf: Replication filter for i_psub The table s51290__dpl_p.i_psub gets recreated in MEMORY all the time and it reaches the size limit, breaking replication. This needs to be fixed by the user Bug: T180560 Change-Id: I0236ce55bf5aeec797a61e8edb7f7dbdd498b1c2 --- M modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/13/391513/1 diff --git a/modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb b/modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb index d30fef9..8e581f0 100644 --- a/modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb +++ b/modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb @@ -68,6 +68,7 @@ replicate_wild_ignore_table= s52721\_\_pagecount\_stats\_p.% # T180560 replicate_wild_ignore_table= s51290__dpl_p.i_orphan_candidates +replicate_wild_ignore_table= s51290__dpl_p.i_psub table_open_cache = 5000 table_definition_cache = 4000 -- To view, visit https://gerrit.wikimedia.org/r/391513 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0236ce55bf5aeec797a61e8edb7f7dbdd498b1c2 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Marostegui___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] operations/puppet[production]: Add apertium-crh-tur packages
KartikMistry has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391511 ) Change subject: Add apertium-crh-tur packages .. Add apertium-crh-tur packages Bug: T178139 Change-Id: I1a8db0210f44fa4db9be45bda6c91bcc26733fad --- M modules/profile/manifests/apertium.pp 1 file changed, 4 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/11/391511/1 diff --git a/modules/profile/manifests/apertium.pp b/modules/profile/manifests/apertium.pp index 4345fb1..4cb650f 100644 --- a/modules/profile/manifests/apertium.pp +++ b/modules/profile/manifests/apertium.pp @@ -34,7 +34,9 @@ 'apertium-bel-rus', 'apertium-br-fr', 'apertium-ca-it', -'apertium-cat', +'apertium-cat' +'apertium-crh', +'apertium-crh-tur', 'apertium-cy-en', 'apertium-dan', 'apertium-dan-nor', @@ -89,6 +91,7 @@ 'apertium-swe-dan', 'apertium-swe-nor', 'apertium-tat', +'apertium-tur', 'apertium-urd', 'apertium-urd-hin', 'cg3', -- To view, visit https://gerrit.wikimedia.org/r/391511 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1a8db0210f44fa4db9be45bda6c91bcc26733fad Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: KartikMistry___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Wikibase[master]: Really autoload client class in Repo-only mode tests
WMDE-leszek has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391510 ) Change subject: Really autoload client class in Repo-only mode tests .. Really autoload client class in Repo-only mode tests Doing Ic3c3f2b969064c65cc4dc69d65392bbdb8b7ff99 right. Change-Id: Icb197448fcc85d41e893f695953adf753ea5cb59 --- M repo/Wikibase.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/10/391510/1 diff --git a/repo/Wikibase.php b/repo/Wikibase.php index bd52030..22f3177 100644 --- a/repo/Wikibase.php +++ b/repo/Wikibase.php @@ -74,7 +74,7 @@ // Load autoload info as long as extension classes are not PSR-4-autoloaded require_once __DIR__ . '/autoload.php'; // Nasty hack: some repo's tests rely on classes defined in Client! Load it in repo-only mode to have tests pass -if ( !defined( 'WB_VERSION' ) && defined( 'MW_PHPUNIT_TEST' ) ) { +if ( !defined( 'WBC_VERSION' ) && defined( 'MW_PHPUNIT_TEST' ) ) { global $wgAutoloadClasses; $wgAutoloadClasses['Wikibase\\Client\\Store\\TitleFactory'] = __DIR__ . '/../client/includes/Store/TitleFactory.php'; } -- To view, visit https://gerrit.wikimedia.org/r/391510 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Icb197448fcc85d41e893f695953adf753ea5cb59 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: WMDE-leszek___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] operations/mediawiki-config[master]: db-eqiad.php: Depool db1071 and db1099
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391509 ) Change subject: db-eqiad.php: Depool db1071 and db1099 .. db-eqiad.php: Depool db1071 and db1099 db1071 and db1099 need a schema change Bug: T174569 Change-Id: Ic2970f6e4a98be445ba7e6bcde441b9a95932b2a --- M wmf-config/db-eqiad.php 1 file changed, 9 insertions(+), 9 deletions(-) Approvals: Marostegui: Looks good to me, approved jenkins-bot: Verified diff --git a/wmf-config/db-eqiad.php b/wmf-config/db-eqiad.php index 171ed37..66cfe45 100644 --- a/wmf-config/db-eqiad.php +++ b/wmf-config/db-eqiad.php @@ -145,12 +145,12 @@ 's5' => [ 'db1063' => 0, # C5 2.8TB 128GB, master 'db1070' => 1, # D1 2.8TB 160GB, vslow, dump #ROW based replication - master for db1095 - 'db1071' => 1, # D1 2.8TB 160GB, api - 'db1082' => 300, # A2 3.6TB 512GB, api + # 'db1071' => 1, # D1 2.8TB 160GB, api #T174569 + 'db1082' => 100, # A2 3.6TB 512GB, api 'db1087' => 500, # C2 3.6TB 512GB 'db1092' => 500, # D2 3.6TB 512GB 'db1096' => 1, # A6 3.6TB 512GB, watchlist, recentchanges, contributions, logpager - 'db1099' => 1, # B2 3.6TB 512GB, watchlist, recentchanges, contributions, logpager + # 'db1099' => 1, # B2 3.6TB 512GB, watchlist, recentchanges, contributions, logpager #T174569 'db1100' => 1, # C2 3.6TB 512GB, old master # 'db1104' => 100, # B3 3.6TB 512GB 'db1106' => 300, # D3 3.6TB 512GB @@ -388,28 +388,28 @@ 'db1070' => 1, ], 'api' => [ - 'db1071' => 1, + # 'db1071' => 1, 'db1082' => 1, ], 'watchlist' => [ 'db1096' => 1, - 'db1099' => 1, + # 'db1099' => 1, ], 'recentchanges' => [ 'db1096' => 1, - 'db1099' => 1, + # 'db1099' => 1, ], 'recentchangeslinked' => [ 'db1096' => 1, - 'db1099' => 1, + # 'db1099' => 1, ], 'contributions' => [ 'db1096' => 1, - 'db1099' => 1, + # 'db1099' => 1, ], 'logpager' => [ 'db1096' => 1, - 'db1099' => 1, + # 'db1099' => 1, ], ], 's6' => [ -- To view, visit https://gerrit.wikimedia.org/r/391509 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ic2970f6e4a98be445ba7e6bcde441b9a95932b2a Gerrit-PatchSet: 2 Gerrit-Project: operations/mediawiki-config Gerrit-Branch: master Gerrit-Owner: MarosteguiGerrit-Reviewer: Jcrespo Gerrit-Reviewer: Marostegui Gerrit-Reviewer: Urbanecm Gerrit-Reviewer: Zoranzoki21 Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] operations/mediawiki-config[master]: db-eqiad.php: Depool db1071 and db1099
Marostegui has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391509 ) Change subject: db-eqiad.php: Depool db1071 and db1099 .. db-eqiad.php: Depool db1071 and db1099 db1071 and db1099 need a schema change Bug: T174569 Change-Id: Ic2970f6e4a98be445ba7e6bcde441b9a95932b2a --- M wmf-config/db-eqiad.php 1 file changed, 8 insertions(+), 8 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config refs/changes/09/391509/1 diff --git a/wmf-config/db-eqiad.php b/wmf-config/db-eqiad.php index 171ed37..e84f8a9 100644 --- a/wmf-config/db-eqiad.php +++ b/wmf-config/db-eqiad.php @@ -145,12 +145,12 @@ 's5' => [ 'db1063' => 0, # C5 2.8TB 128GB, master 'db1070' => 1, # D1 2.8TB 160GB, vslow, dump #ROW based replication - master for db1095 - 'db1071' => 1, # D1 2.8TB 160GB, api + # 'db1071' => 1, # D1 2.8TB 160GB, api #T174569 'db1082' => 300, # A2 3.6TB 512GB, api 'db1087' => 500, # C2 3.6TB 512GB 'db1092' => 500, # D2 3.6TB 512GB 'db1096' => 1, # A6 3.6TB 512GB, watchlist, recentchanges, contributions, logpager - 'db1099' => 1, # B2 3.6TB 512GB, watchlist, recentchanges, contributions, logpager + # 'db1099' => 1, # B2 3.6TB 512GB, watchlist, recentchanges, contributions, logpager #T174569 'db1100' => 1, # C2 3.6TB 512GB, old master # 'db1104' => 100, # B3 3.6TB 512GB 'db1106' => 300, # D3 3.6TB 512GB @@ -388,28 +388,28 @@ 'db1070' => 1, ], 'api' => [ - 'db1071' => 1, + # 'db1071' => 1, 'db1082' => 1, ], 'watchlist' => [ 'db1096' => 1, - 'db1099' => 1, + # 'db1099' => 1, ], 'recentchanges' => [ 'db1096' => 1, - 'db1099' => 1, + # 'db1099' => 1, ], 'recentchangeslinked' => [ 'db1096' => 1, - 'db1099' => 1, + # 'db1099' => 1, ], 'contributions' => [ 'db1096' => 1, - 'db1099' => 1, + # 'db1099' => 1, ], 'logpager' => [ 'db1096' => 1, - 'db1099' => 1, + # 'db1099' => 1, ], ], 's6' => [ -- To view, visit https://gerrit.wikimedia.org/r/391509 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic2970f6e4a98be445ba7e6bcde441b9a95932b2a Gerrit-PatchSet: 1 Gerrit-Project: operations/mediawiki-config Gerrit-Branch: master Gerrit-Owner: Marostegui___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] operations/mediawiki-config[master]: Revert "db-eqiad.php: Depool db1106 and db1100"
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391506 ) Change subject: Revert "db-eqiad.php: Depool db1106 and db1100" .. Revert "db-eqiad.php: Depool db1106 and db1100" This reverts commit 23f88985d9829a499907f31cbd4c00c6884ce842. Change-Id: Iaba3a88bb0e1d80607ea321ae219110da73f0912 --- M wmf-config/db-eqiad.php 1 file changed, 3 insertions(+), 3 deletions(-) Approvals: Marostegui: Looks good to me, approved jenkins-bot: Verified diff --git a/wmf-config/db-eqiad.php b/wmf-config/db-eqiad.php index 5c78778..171ed37 100644 --- a/wmf-config/db-eqiad.php +++ b/wmf-config/db-eqiad.php @@ -151,9 +151,9 @@ 'db1092' => 500, # D2 3.6TB 512GB 'db1096' => 1, # A6 3.6TB 512GB, watchlist, recentchanges, contributions, logpager 'db1099' => 1, # B2 3.6TB 512GB, watchlist, recentchanges, contributions, logpager - # 'db1100' => 1, # C2 3.6TB 512GB, old master #T174569 - # 'db1104' => 100, # B3 3.6TB 512GB #T174569 - # 'db1106' => 300, # D3 3.6TB 512GB #T174569 + 'db1100' => 1, # C2 3.6TB 512GB, old master + # 'db1104' => 100, # B3 3.6TB 512GB + 'db1106' => 300, # D3 3.6TB 512GB ], 's6' => [ 'db1061' => 0, # C3 2.8TB 128GB, master -- To view, visit https://gerrit.wikimedia.org/r/391506 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Iaba3a88bb0e1d80607ea321ae219110da73f0912 Gerrit-PatchSet: 2 Gerrit-Project: operations/mediawiki-config Gerrit-Branch: master Gerrit-Owner: MarosteguiGerrit-Reviewer: Jcrespo Gerrit-Reviewer: Marostegui Gerrit-Reviewer: Urbanecm Gerrit-Reviewer: Zoranzoki21 Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] operations/puppet[production]: tools.my.cnf: Replication filter: s51290__dpl_p
Marostegui has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391508 ) Change subject: tools.my.cnf: Replication filter: s51290__dpl_p .. tools.my.cnf: Replication filter: s51290__dpl_p Add new replication filter to ignore an in MEMORY table See T180560 Bug: T180560 Change-Id: I3788c57e76b0f145a3699b15f00a977b90a29479 --- M modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb 1 file changed, 2 insertions(+), 0 deletions(-) Approvals: Marostegui: Looks good to me, approved jenkins-bot: Verified diff --git a/modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb b/modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb index 9d25c27..d30fef9 100644 --- a/modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb +++ b/modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb @@ -66,6 +66,8 @@ replicate_wild_ignore_table= s51412\_\_data.% replicate_wild_ignore_table= s51071\_\_templatetiger\_p.% replicate_wild_ignore_table= s52721\_\_pagecount\_stats\_p.% +# T180560 +replicate_wild_ignore_table= s51290__dpl_p.i_orphan_candidates table_open_cache = 5000 table_definition_cache = 4000 -- To view, visit https://gerrit.wikimedia.org/r/391508 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I3788c57e76b0f145a3699b15f00a977b90a29479 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: MarosteguiGerrit-Reviewer: Jcrespo Gerrit-Reviewer: Marostegui Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] operations/puppet[production]: tools.my.cnf: Replication filter: s51290__dpl_p
Marostegui has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391508 ) Change subject: tools.my.cnf: Replication filter: s51290__dpl_p .. tools.my.cnf: Replication filter: s51290__dpl_p Add new replication filter to ignore an in MEMORY table See T180560 Bug: T180560 Change-Id: I3788c57e76b0f145a3699b15f00a977b90a29479 --- M modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/08/391508/1 diff --git a/modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb b/modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb index 9d25c27..d30fef9 100644 --- a/modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb +++ b/modules/role/templates/mariadb/mysqld_config/tools.my.cnf.erb @@ -66,6 +66,8 @@ replicate_wild_ignore_table= s51412\_\_data.% replicate_wild_ignore_table= s51071\_\_templatetiger\_p.% replicate_wild_ignore_table= s52721\_\_pagecount\_stats\_p.% +# T180560 +replicate_wild_ignore_table= s51290__dpl_p.i_orphan_candidates table_open_cache = 5000 table_definition_cache = 4000 -- To view, visit https://gerrit.wikimedia.org/r/391508 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3788c57e76b0f145a3699b15f00a977b90a29479 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Marostegui___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_28]: Fix phpcs issues from LanguageConverter patches
Brian Wolff has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391507 ) Change subject: Fix phpcs issues from LanguageConverter patches .. Fix phpcs issues from LanguageConverter patches Change-Id: I34e57c90ffd40fbd9f8afe3c57dd73fa7f655841 (cherry picked from commit f600b4ede9a6390cc5e929d2a48ed98af2edbc60) --- M languages/LanguageConverter.php M tests/phpunit/languages/LanguageConverterTest.php 2 files changed, 5 insertions(+), 3 deletions(-) Approvals: Brian Wolff: Verified; Looks good to me, approved diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index ebff245..9987f64 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -420,11 +420,11 @@ $log = LoggerFactory::getInstance( 'languageconverter' ); $log->error( "Hit pcre.backtrack_limit in " . __METHOD__ . ". Disabling language conversion for this page.", - array( + [ "method" => __METHOD__, "variant" => $toVariant, "startOfText" => substr( $text, 0, 500 ) - ) + ] ); return $text; } @@ -682,7 +682,9 @@ $noScript = '.*?<\/script>(*SKIP)(*FAIL)'; $noStyle = ' .*?<\/style>(*SKIP)(*FAIL)'; + // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong $noHtml = '<(?:[^>=]*+(?>[^>=]*+=\s*+(?:"[^"]*"|\'[^\']*\'|[^\'">\s]*+))*+[^>=]*+>|.*+)(*SKIP)(*FAIL)'; + // @codingStandardsIgnoreEnd while ( $startPos < $length && $continue ) { $continue = preg_match( // Only match -{ outside of html. diff --git a/tests/phpunit/languages/LanguageConverterTest.php b/tests/phpunit/languages/LanguageConverterTest.php index 331368e..fc2ed33 100644 --- a/tests/phpunit/languages/LanguageConverterTest.php +++ b/tests/phpunit/languages/LanguageConverterTest.php @@ -167,7 +167,7 @@ $testString .= 'xxx xxx xxx'; } $testString .= "\n"; - $old = ini_set('pcre.backtrack_limit', 200 ); + $old = ini_set( 'pcre.backtrack_limit', 200 ); $result = $this->lc->autoConvert( $testString, 'tg-latn' ); ini_set( 'pcre.backtrack_limit', $old ); // The в in the id attribute should not get converted to a v -- To view, visit https://gerrit.wikimedia.org/r/391507 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I34e57c90ffd40fbd9f8afe3c57dd73fa7f655841 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_28 Gerrit-Owner: Brian Wolff Gerrit-Reviewer: Brian Wolff Gerrit-Reviewer: Reedy ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_28]: Fix phpcs issues from LanguageConverter patches
Brian Wolff has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391507 ) Change subject: Fix phpcs issues from LanguageConverter patches .. Fix phpcs issues from LanguageConverter patches Change-Id: I34e57c90ffd40fbd9f8afe3c57dd73fa7f655841 (cherry picked from commit f600b4ede9a6390cc5e929d2a48ed98af2edbc60) --- M languages/LanguageConverter.php M tests/phpunit/languages/LanguageConverterTest.php 2 files changed, 5 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/07/391507/1 diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index ebff245..9987f64 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -420,11 +420,11 @@ $log = LoggerFactory::getInstance( 'languageconverter' ); $log->error( "Hit pcre.backtrack_limit in " . __METHOD__ . ". Disabling language conversion for this page.", - array( + [ "method" => __METHOD__, "variant" => $toVariant, "startOfText" => substr( $text, 0, 500 ) - ) + ] ); return $text; } @@ -682,7 +682,9 @@ $noScript = '.*?<\/script>(*SKIP)(*FAIL)'; $noStyle = ' .*?<\/style>(*SKIP)(*FAIL)'; + // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong $noHtml = '<(?:[^>=]*+(?>[^>=]*+=\s*+(?:"[^"]*"|\'[^\']*\'|[^\'">\s]*+))*+[^>=]*+>|.*+)(*SKIP)(*FAIL)'; + // @codingStandardsIgnoreEnd while ( $startPos < $length && $continue ) { $continue = preg_match( // Only match -{ outside of html. diff --git a/tests/phpunit/languages/LanguageConverterTest.php b/tests/phpunit/languages/LanguageConverterTest.php index 331368e..fc2ed33 100644 --- a/tests/phpunit/languages/LanguageConverterTest.php +++ b/tests/phpunit/languages/LanguageConverterTest.php @@ -167,7 +167,7 @@ $testString .= 'xxx xxx xxx'; } $testString .= "\n"; - $old = ini_set('pcre.backtrack_limit', 200 ); + $old = ini_set( 'pcre.backtrack_limit', 200 ); $result = $this->lc->autoConvert( $testString, 'tg-latn' ); ini_set( 'pcre.backtrack_limit', $old ); // The в in the id attribute should not get converted to a v -- To view, visit https://gerrit.wikimedia.org/r/391507 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I34e57c90ffd40fbd9f8afe3c57dd73fa7f655841 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_28 Gerrit-Owner: Brian Wolff Gerrit-Reviewer: Reedy ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] operations/mediawiki-config[master]: Revert "db-eqiad.php: Depool db1106 and db1100"
Hello jenkins-bot, Jcrespo, I'd like you to do a code review. Please visit https://gerrit.wikimedia.org/r/391506 to review the following change. Change subject: Revert "db-eqiad.php: Depool db1106 and db1100" .. Revert "db-eqiad.php: Depool db1106 and db1100" This reverts commit 23f88985d9829a499907f31cbd4c00c6884ce842. Change-Id: Iaba3a88bb0e1d80607ea321ae219110da73f0912 --- M wmf-config/db-eqiad.php 1 file changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config refs/changes/06/391506/1 diff --git a/wmf-config/db-eqiad.php b/wmf-config/db-eqiad.php index e3504e8..14635db 100644 --- a/wmf-config/db-eqiad.php +++ b/wmf-config/db-eqiad.php @@ -151,9 +151,9 @@ 'db1092' => 500, # D2 3.6TB 512GB 'db1096' => 1, # A6 3.6TB 512GB, watchlist, recentchanges, contributions, logpager 'db1099' => 1, # B2 3.6TB 512GB, watchlist, recentchanges, contributions, logpager - # 'db1100' => 1, # C2 3.6TB 512GB, old master #T174569 - # 'db1104' => 100, # B3 3.6TB 512GB #T174569 - # 'db1106' => 300, # D3 3.6TB 512GB #T174569 + 'db1100' => 1, # C2 3.6TB 512GB, old master + # 'db1104' => 100, # B3 3.6TB 512GB + 'db1106' => 300, # D3 3.6TB 512GB ], 's6' => [ 'db1061' => 0, # C3 2.8TB 128GB, master -- To view, visit https://gerrit.wikimedia.org/r/391506 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iaba3a88bb0e1d80607ea321ae219110da73f0912 Gerrit-PatchSet: 1 Gerrit-Project: operations/mediawiki-config Gerrit-Branch: master Gerrit-Owner: MarosteguiGerrit-Reviewer: Jcrespo Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Updated phpunit/phpunit from v4.8.35 to v4.8.36 in correct R...
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/390937 ) Change subject: Updated phpunit/phpunit from v4.8.35 to v4.8.36 in correct RELEASE-NOTES .. Updated phpunit/phpunit from v4.8.35 to v4.8.36 in correct RELEASE-NOTES Change-Id: I034e234348755e6746fbd9755d070f10bf91303d --- M RELEASE-NOTES-1.30 M RELEASE-NOTES-1.31 2 files changed, 2 insertions(+), 1 deletion(-) Approvals: Brian Wolff: Looks good to me, approved jenkins-bot: Verified diff --git a/RELEASE-NOTES-1.30 b/RELEASE-NOTES-1.30 index d92c38c..1449dab 100644 --- a/RELEASE-NOTES-1.30 +++ b/RELEASE-NOTES-1.30 @@ -87,6 +87,7 @@ * Updated OOjs from v2.0.0 to v2.1.0. * Updated OOUI from v0.21.1 to v0.23.0. * Updated QUnit from v1.23.1 to v2.4.0. +* Updated phpunit/phpunit from v4.8.35 to v4.8.36. New external libraries * The class \TestingAccessWrapper has been moved to the external library diff --git a/RELEASE-NOTES-1.31 b/RELEASE-NOTES-1.31 index 9ded68c..49bcbe4 100644 --- a/RELEASE-NOTES-1.31 +++ b/RELEASE-NOTES-1.31 @@ -24,7 +24,7 @@ === External library changes in 1.31 === Upgraded external libraries -* Updated dev dependancy phpunit/phpunit from v4.8.35 to v4.8.36. +* … New external libraries * … -- To view, visit https://gerrit.wikimedia.org/r/390937 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I034e234348755e6746fbd9755d070f10bf91303d Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: ReedyGerrit-Reviewer: Brian Wolff Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_28]: Follow-up I077d30c50 fix phpcs error
Brian Wolff has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391505 ) Change subject: Follow-up I077d30c50 fix phpcs error .. Follow-up I077d30c50 fix phpcs error Change-Id: I28cb7060d6149d96ceb0dcad7e2bff2ed3434411 --- M languages/LanguageConverter.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/05/391505/1 diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 6760527..ebff245 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -404,7 +404,7 @@ // We hit the end. $elementPos = strlen( $text ); $element = ''; - } elseif( substr( $element, -1 ) === "\004" ) { + } elseif ( substr( $element, -1 ) === "\004" ) { // This can sometimes happen if we have // unclosed html tags (For example // when converting a title attribute -- To view, visit https://gerrit.wikimedia.org/r/391505 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I28cb7060d6149d96ceb0dcad7e2bff2ed3434411 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_28 Gerrit-Owner: Brian Wolff___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_28]: Follow-up I077d30c50 fix phpcs error
Brian Wolff has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391505 ) Change subject: Follow-up I077d30c50 fix phpcs error .. Follow-up I077d30c50 fix phpcs error Change-Id: I28cb7060d6149d96ceb0dcad7e2bff2ed3434411 --- M languages/LanguageConverter.php 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 6760527..ebff245 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -404,7 +404,7 @@ // We hit the end. $elementPos = strlen( $text ); $element = ''; - } elseif( substr( $element, -1 ) === "\004" ) { + } elseif ( substr( $element, -1 ) === "\004" ) { // This can sometimes happen if we have // unclosed html tags (For example // when converting a title attribute -- To view, visit https://gerrit.wikimedia.org/r/391505 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I28cb7060d6149d96ceb0dcad7e2bff2ed3434411 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_28 Gerrit-Owner: Brian WolffGerrit-Reviewer: Brian Wolff ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_29]: Follow-up I077d30c50 fix phpcs error
Brian Wolff has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391504 ) Change subject: Follow-up I077d30c50 fix phpcs error .. Follow-up I077d30c50 fix phpcs error Change-Id: I28cb7060d6149d96ceb0dcad7e2bff2ed3434411 --- M languages/LanguageConverter.php 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 187727f..a35366f 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -409,7 +409,7 @@ // We hit the end. $elementPos = strlen( $text ); $element = ''; - } elseif( substr( $element, -1 ) === "\004" ) { + } elseif ( substr( $element, -1 ) === "\004" ) { // This can sometimes happen if we have // unclosed html tags (For example // when converting a title attribute -- To view, visit https://gerrit.wikimedia.org/r/391504 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I28cb7060d6149d96ceb0dcad7e2bff2ed3434411 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_29 Gerrit-Owner: Brian WolffGerrit-Reviewer: Brian Wolff ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_29]: Follow-up I077d30c50 fix phpcs error
Brian Wolff has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391504 ) Change subject: Follow-up I077d30c50 fix phpcs error .. Follow-up I077d30c50 fix phpcs error Change-Id: I28cb7060d6149d96ceb0dcad7e2bff2ed3434411 --- M languages/LanguageConverter.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/04/391504/1 diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 187727f..a35366f 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -409,7 +409,7 @@ // We hit the end. $elementPos = strlen( $text ); $element = ''; - } elseif( substr( $element, -1 ) === "\004" ) { + } elseif ( substr( $element, -1 ) === "\004" ) { // This can sometimes happen if we have // unclosed html tags (For example // when converting a title attribute -- To view, visit https://gerrit.wikimedia.org/r/391504 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I28cb7060d6149d96ceb0dcad7e2bff2ed3434411 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_29 Gerrit-Owner: Brian Wolff___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_30]: Follow-up I077d30c50 fix phpcs error
Brian Wolff has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391503 ) Change subject: Follow-up I077d30c50 fix phpcs error .. Follow-up I077d30c50 fix phpcs error Change-Id: I28cb7060d6149d96ceb0dcad7e2bff2ed3434411 --- M languages/LanguageConverter.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/03/391503/1 diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 1d78402..1f720af 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -403,7 +403,7 @@ // We hit the end. $elementPos = strlen( $text ); $element = ''; - } elseif( substr( $element, -1 ) === "\004" ) { + } elseif ( substr( $element, -1 ) === "\004" ) { // This can sometimes happen if we have // unclosed html tags (For example // when converting a title attribute -- To view, visit https://gerrit.wikimedia.org/r/391503 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I28cb7060d6149d96ceb0dcad7e2bff2ed3434411 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_30 Gerrit-Owner: Brian Wolff___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_30]: Follow-up I077d30c50 fix phpcs error
Brian Wolff has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391503 ) Change subject: Follow-up I077d30c50 fix phpcs error .. Follow-up I077d30c50 fix phpcs error Change-Id: I28cb7060d6149d96ceb0dcad7e2bff2ed3434411 --- M languages/LanguageConverter.php 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 1d78402..1f720af 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -403,7 +403,7 @@ // We hit the end. $elementPos = strlen( $text ); $element = ''; - } elseif( substr( $element, -1 ) === "\004" ) { + } elseif ( substr( $element, -1 ) === "\004" ) { // This can sometimes happen if we have // unclosed html tags (For example // when converting a title attribute -- To view, visit https://gerrit.wikimedia.org/r/391503 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I28cb7060d6149d96ceb0dcad7e2bff2ed3434411 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_30 Gerrit-Owner: Brian WolffGerrit-Reviewer: Brian Wolff ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Follow-up I077d30c50 fix phpcs error
Brian Wolff has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391502 ) Change subject: Follow-up I077d30c50 fix phpcs error .. Follow-up I077d30c50 fix phpcs error Change-Id: I28cb7060d6149d96ceb0dcad7e2bff2ed3434411 --- M languages/LanguageConverter.php 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 1d78402..1f720af 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -403,7 +403,7 @@ // We hit the end. $elementPos = strlen( $text ); $element = ''; - } elseif( substr( $element, -1 ) === "\004" ) { + } elseif ( substr( $element, -1 ) === "\004" ) { // This can sometimes happen if we have // unclosed html tags (For example // when converting a title attribute -- To view, visit https://gerrit.wikimedia.org/r/391502 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I28cb7060d6149d96ceb0dcad7e2bff2ed3434411 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Brian WolffGerrit-Reviewer: Brian Wolff ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Follow-up I077d30c50 fix phpcs error
Brian Wolff has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391502 ) Change subject: Follow-up I077d30c50 fix phpcs error .. Follow-up I077d30c50 fix phpcs error Change-Id: I28cb7060d6149d96ceb0dcad7e2bff2ed3434411 --- M languages/LanguageConverter.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/02/391502/1 diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 1d78402..1f720af 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -403,7 +403,7 @@ // We hit the end. $elementPos = strlen( $text ); $element = ''; - } elseif( substr( $element, -1 ) === "\004" ) { + } elseif ( substr( $element, -1 ) === "\004" ) { // This can sometimes happen if we have // unclosed html tags (For example // when converting a title attribute -- To view, visit https://gerrit.wikimedia.org/r/391502 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I28cb7060d6149d96ceb0dcad7e2bff2ed3434411 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Brian Wolff___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...CentralNotice[master]: Don't load CentralNotice on history or diff pages
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/380891 ) Change subject: Don't load CentralNotice on history or diff pages .. Don't load CentralNotice on history or diff pages History and diff pages have one-click rollback links. Delayed loading of CentralNotice banners on these pages can cause users to misclick these links. It is safer, and affects relatively few pageviews, to not load CentralNotice on these pages. We already avoid loading on Special pages. Bug: T176656 Change-Id: Icf31d9f00b7c74c5eca661ce9f759b7fbab74cd3 --- M CentralNotice.hooks.php 1 file changed, 5 insertions(+), 2 deletions(-) Approvals: jenkins-bot: Verified AndyRussG: Looks good to me, approved diff --git a/CentralNotice.hooks.php b/CentralNotice.hooks.php index b980767..92fed08 100644 --- a/CentralNotice.hooks.php +++ b/CentralNotice.hooks.php @@ -168,9 +168,12 @@ // TODO Separate geoIP from CentralNotice $out->addModules( 'ext.centralNotice.geoIP' ); - // If we're editing or we're on a special page, bow out now + // If we're on a special page, editing, viewing history or a diff, bow out now + // This is to reduce chance of bad misclicks from delayed banner loading if ( $out->getTitle()->inNamespace( NS_SPECIAL ) || - ( $wgRequest->getText( 'action' ) === 'edit' ) + ( $wgRequest->getText( 'action' ) === 'edit' ) || + ( $wgRequest->getText( 'action' ) === 'history' ) || + $wgRequest->getCheck( 'diff' ) ) { return true; } -- To view, visit https://gerrit.wikimedia.org/r/380891 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Icf31d9f00b7c74c5eca661ce9f759b7fbab74cd3 Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/CentralNotice Gerrit-Branch: master Gerrit-Owner: PcoombeGerrit-Reviewer: AndyRussG Gerrit-Reviewer: Ejegg Gerrit-Reviewer: XenoRyet Gerrit-Reviewer: Zfilipin Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_27]: Fix langauge converter parser test with self-close tags
Brian Wolff has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391501 ) Change subject: Fix langauge converter parser test with self-close tags .. Fix langauge converter parser test with self-close tags This fixes an issue in f21f3942 where if there was an html element with an alt or title attribute containing an entity, an ascii EOT control character (0x04) may become inserted into the text if language converter was enabled. Due to a really old bug in language converter, self-closed tags got turned into non-self closed tags. However due a different bug which was fixed in f21f3942 this code path was rarely taken so nobody noticed until now. Follow-up Idbc45cac12 Bug: T180552 Change-Id: I077d30c50fcb419837fef937d27caca307153d2d --- M languages/LanguageConverter.php M tests/parser/parserTests.txt 2 files changed, 17 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/01/391501/1 diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 28c75e1..7b5abb2 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -354,7 +354,6 @@ if ( $this->guessVariant( $text, $toVariant ) ) { return $text; } - /* we convert everything except: 1. HTML markups (anything between < and >) 2. HTML entities @@ -389,6 +388,7 @@ // Guard against delimiter nulls in the input $text = str_replace( "\000", '', $text ); + $text = str_replace( "\004", '', $text ); $markupMatches = null; $elementMatches = null; @@ -403,6 +403,13 @@ // We hit the end. $elementPos = strlen( $text ); $element = ''; + } elseif ( substr( $element, -1 ) === "\004" ) { + // This can sometimes happen if we have + // unclosed html tags (For example + // when converting a title attribute + // during a recursive call that contains + // a e.g. . + $element = substr( $element, 0, -1 ); } } else { // If we hit here, then Language Converter could be tricked @@ -430,7 +437,14 @@ if ( $element !== '' && preg_match( '/^(<[^>\s]*+)\s([^>]*+)(.*+)$/', $element, $elementMatches ) ) { + // FIXME, this decodes entities, so if you have something + // like the bar won't get + // translated since after entity decoding it looks like + // unclosed html and we call this method recursively + // on attributes. $attrs = Sanitizer::decodeTagAttributes( $elementMatches[2] ); + // Ensure self-closing tags stay self-closing. + $close = substr( $elementMatches[2], -1 ) === '/' ? ' /' : ''; $changed = false; foreach ( [ 'title', 'alt' ] as $attrName ) { if ( !isset( $attrs[$attrName] ) ) { @@ -451,7 +465,7 @@ } if ( $changed ) { $element = $elementMatches[1] . Html::expandAttributes( $attrs ) . - $elementMatches[3]; + $close . $elementMatches[3]; } } $literalBlob .= $element . "\000"; diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index b498105..5814985 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -16772,7 +16772,7 @@ [[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] !! html -http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> +http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220" /> !! end -- To view, visit https://gerrit.wikimedia.org/r/391501 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I077d30c50fcb419837fef937d27caca307153d2d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_27 Gerrit-Owner: Brian Wolff
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_27]: Fix langauge converter parser test with self-close tags
Brian Wolff has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391501 ) Change subject: Fix langauge converter parser test with self-close tags .. Fix langauge converter parser test with self-close tags This fixes an issue in f21f3942 where if there was an html element with an alt or title attribute containing an entity, an ascii EOT control character (0x04) may become inserted into the text if language converter was enabled. Due to a really old bug in language converter, self-closed tags got turned into non-self closed tags. However due a different bug which was fixed in f21f3942 this code path was rarely taken so nobody noticed until now. Follow-up Idbc45cac12 Bug: T180552 Change-Id: I077d30c50fcb419837fef937d27caca307153d2d --- M languages/LanguageConverter.php M tests/parser/parserTests.txt 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 28c75e1..7b5abb2 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -354,7 +354,6 @@ if ( $this->guessVariant( $text, $toVariant ) ) { return $text; } - /* we convert everything except: 1. HTML markups (anything between < and >) 2. HTML entities @@ -389,6 +388,7 @@ // Guard against delimiter nulls in the input $text = str_replace( "\000", '', $text ); + $text = str_replace( "\004", '', $text ); $markupMatches = null; $elementMatches = null; @@ -403,6 +403,13 @@ // We hit the end. $elementPos = strlen( $text ); $element = ''; + } elseif ( substr( $element, -1 ) === "\004" ) { + // This can sometimes happen if we have + // unclosed html tags (For example + // when converting a title attribute + // during a recursive call that contains + // a e.g. . + $element = substr( $element, 0, -1 ); } } else { // If we hit here, then Language Converter could be tricked @@ -430,7 +437,14 @@ if ( $element !== '' && preg_match( '/^(<[^>\s]*+)\s([^>]*+)(.*+)$/', $element, $elementMatches ) ) { + // FIXME, this decodes entities, so if you have something + // like the bar won't get + // translated since after entity decoding it looks like + // unclosed html and we call this method recursively + // on attributes. $attrs = Sanitizer::decodeTagAttributes( $elementMatches[2] ); + // Ensure self-closing tags stay self-closing. + $close = substr( $elementMatches[2], -1 ) === '/' ? ' /' : ''; $changed = false; foreach ( [ 'title', 'alt' ] as $attrName ) { if ( !isset( $attrs[$attrName] ) ) { @@ -451,7 +465,7 @@ } if ( $changed ) { $element = $elementMatches[1] . Html::expandAttributes( $attrs ) . - $elementMatches[3]; + $close . $elementMatches[3]; } } $literalBlob .= $element . "\000"; diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index b498105..5814985 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -16772,7 +16772,7 @@ [[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] !! html -http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> +http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220" /> !! end -- To view, visit https://gerrit.wikimedia.org/r/391501 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I077d30c50fcb419837fef937d27caca307153d2d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_27 Gerrit-Owner: Brian WolffGerrit-Reviewer: Brian Wolff ___ MediaWiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Cargo[master]: Fix for bcadef37f8d7 - added quoting of field names
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391471 ) Change subject: Fix for bcadef37f8d7 - added quoting of field names .. Fix for bcadef37f8d7 - added quoting of field names Change-Id: Iab2b2bc1207c60c9fc10a198994a18f592998e3d --- M includes/parserfunctions/CargoStore.php 1 file changed, 3 insertions(+), 2 deletions(-) Approvals: Yaron Koren: Looks good to me, approved jenkins-bot: Verified diff --git a/includes/parserfunctions/CargoStore.php b/includes/parserfunctions/CargoStore.php index 6dd0932..78c1b4f 100644 --- a/includes/parserfunctions/CargoStore.php +++ b/includes/parserfunctions/CargoStore.php @@ -301,10 +301,11 @@ continue; } if ( $fieldDescription->mIsList || $fieldDescription->mType == 'Coordinates' ) { - $tableFieldValuesForCheck[$fieldName . '__full'] = $tableFieldValues[$fieldName]; + $quotedFieldName = $cdb->addIdentifierQuotes( $fieldName . '__full' ); } else { - $tableFieldValuesForCheck[$fieldName] = $tableFieldValues[$fieldName]; + $quotedFieldName = $cdb->addIdentifierQuotes( $fieldName ); } + $tableFieldValuesForCheck[$quotedFieldName] = $tableFieldValues[$fieldName]; } $res = $cdb->select( $tableName, 'COUNT(*)', $tableFieldValuesForCheck ); $row = $cdb->fetchRow( $res ); -- To view, visit https://gerrit.wikimedia.org/r/391471 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Iab2b2bc1207c60c9fc10a198994a18f592998e3d Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/Cargo Gerrit-Branch: master Gerrit-Owner: Yaron KorenGerrit-Reviewer: Yaron Koren Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_28]: Fix langauge converter parser test with self-close tags
Brian Wolff has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391500 ) Change subject: Fix langauge converter parser test with self-close tags .. Fix langauge converter parser test with self-close tags This fixes an issue in f21f3942 where if there was an html element with an alt or title attribute containing an entity, an ascii EOT control character (0x04) may become inserted into the text if language converter was enabled. Due to a really old bug in language converter, self-closed tags got turned into non-self closed tags. However due a different bug which was fixed in f21f3942 this code path was rarely taken so nobody noticed until now. Follow-up Idbc45cac12 Bug: T180552 Change-Id: I077d30c50fcb419837fef937d27caca307153d2d --- M languages/LanguageConverter.php M tests/parser/parserTests.txt 2 files changed, 17 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/00/391500/1 diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 62ec442..6760527 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -357,7 +357,6 @@ if ( $this->guessVariant( $text, $toVariant ) ) { return $text; } - /* we convert everything except: 1. HTML markups (anything between < and >) 2. HTML entities @@ -390,6 +389,7 @@ // Guard against delimiter nulls in the input $text = str_replace( "\000", '', $text ); + $text = str_replace( "\004", '', $text ); $markupMatches = null; $elementMatches = null; @@ -404,6 +404,13 @@ // We hit the end. $elementPos = strlen( $text ); $element = ''; + } elseif( substr( $element, -1 ) === "\004" ) { + // This can sometimes happen if we have + // unclosed html tags (For example + // when converting a title attribute + // during a recursive call that contains + // a e.g. . + $element = substr( $element, 0, -1 ); } } else { // If we hit here, then Language Converter could be tricked @@ -431,7 +438,14 @@ if ( $element !== '' && preg_match( '/^(<[^>\s]*+)\s([^>]*+)(.*+)$/', $element, $elementMatches ) ) { + // FIXME, this decodes entities, so if you have something + // like the bar won't get + // translated since after entity decoding it looks like + // unclosed html and we call this method recursively + // on attributes. $attrs = Sanitizer::decodeTagAttributes( $elementMatches[2] ); + // Ensure self-closing tags stay self-closing. + $close = substr( $elementMatches[2], -1 ) === '/' ? ' /' : ''; $changed = false; foreach ( [ 'title', 'alt' ] as $attrName ) { if ( !isset( $attrs[$attrName] ) ) { @@ -452,7 +466,7 @@ } if ( $changed ) { $element = $elementMatches[1] . Html::expandAttributes( $attrs ) . - $elementMatches[3]; + $close . $elementMatches[3]; } } $literalBlob .= $element . "\000"; diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 19bf56f..910dcd9 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -17149,7 +17149,7 @@ [[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] !! html -http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> +http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220" /> !! end -- To view, visit https://gerrit.wikimedia.org/r/391500 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I077d30c50fcb419837fef937d27caca307153d2d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_28 Gerrit-Owner: Brian Wolff
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_28]: Fix langauge converter parser test with self-close tags
Brian Wolff has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391500 ) Change subject: Fix langauge converter parser test with self-close tags .. Fix langauge converter parser test with self-close tags This fixes an issue in f21f3942 where if there was an html element with an alt or title attribute containing an entity, an ascii EOT control character (0x04) may become inserted into the text if language converter was enabled. Due to a really old bug in language converter, self-closed tags got turned into non-self closed tags. However due a different bug which was fixed in f21f3942 this code path was rarely taken so nobody noticed until now. Follow-up Idbc45cac12 Bug: T180552 Change-Id: I077d30c50fcb419837fef937d27caca307153d2d --- M languages/LanguageConverter.php M tests/parser/parserTests.txt 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 62ec442..6760527 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -357,7 +357,6 @@ if ( $this->guessVariant( $text, $toVariant ) ) { return $text; } - /* we convert everything except: 1. HTML markups (anything between < and >) 2. HTML entities @@ -390,6 +389,7 @@ // Guard against delimiter nulls in the input $text = str_replace( "\000", '', $text ); + $text = str_replace( "\004", '', $text ); $markupMatches = null; $elementMatches = null; @@ -404,6 +404,13 @@ // We hit the end. $elementPos = strlen( $text ); $element = ''; + } elseif( substr( $element, -1 ) === "\004" ) { + // This can sometimes happen if we have + // unclosed html tags (For example + // when converting a title attribute + // during a recursive call that contains + // a e.g. . + $element = substr( $element, 0, -1 ); } } else { // If we hit here, then Language Converter could be tricked @@ -431,7 +438,14 @@ if ( $element !== '' && preg_match( '/^(<[^>\s]*+)\s([^>]*+)(.*+)$/', $element, $elementMatches ) ) { + // FIXME, this decodes entities, so if you have something + // like the bar won't get + // translated since after entity decoding it looks like + // unclosed html and we call this method recursively + // on attributes. $attrs = Sanitizer::decodeTagAttributes( $elementMatches[2] ); + // Ensure self-closing tags stay self-closing. + $close = substr( $elementMatches[2], -1 ) === '/' ? ' /' : ''; $changed = false; foreach ( [ 'title', 'alt' ] as $attrName ) { if ( !isset( $attrs[$attrName] ) ) { @@ -452,7 +466,7 @@ } if ( $changed ) { $element = $elementMatches[1] . Html::expandAttributes( $attrs ) . - $elementMatches[3]; + $close . $elementMatches[3]; } } $literalBlob .= $element . "\000"; diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 19bf56f..910dcd9 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -17149,7 +17149,7 @@ [[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] !! html -http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> +http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220" /> !! end -- To view, visit https://gerrit.wikimedia.org/r/391500 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I077d30c50fcb419837fef937d27caca307153d2d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_28 Gerrit-Owner: Brian WolffGerrit-Reviewer: Brian Wolff ___ MediaWiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_29]: Fix langauge converter parser test with self-close tags
Brian Wolff has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391499 ) Change subject: Fix langauge converter parser test with self-close tags .. Fix langauge converter parser test with self-close tags This fixes an issue in f21f3942 where if there was an html element with an alt or title attribute containing an entity, an ascii EOT control character (0x04) may become inserted into the text if language converter was enabled. Due to a really old bug in language converter, self-closed tags got turned into non-self closed tags. However due a different bug which was fixed in f21f3942 this code path was rarely taken so nobody noticed until now. Follow-up Idbc45cac12 Bug: T180552 Change-Id: I077d30c50fcb419837fef937d27caca307153d2d --- M languages/LanguageConverter.php M tests/parser/parserTests.txt 2 files changed, 17 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/99/391499/1 diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index e9a9642..187727f 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -359,7 +359,6 @@ if ( $this->guessVariant( $text, $toVariant ) ) { return $text; } - /* we convert everything except: 1. HTML markups (anything between < and >) 2. HTML entities @@ -395,6 +394,7 @@ // Guard against delimiter nulls in the input // (should never happen: see T159174) $text = str_replace( "\000", '', $text ); + $text = str_replace( "\004", '', $text ); $markupMatches = null; $elementMatches = null; @@ -409,6 +409,13 @@ // We hit the end. $elementPos = strlen( $text ); $element = ''; + } elseif( substr( $element, -1 ) === "\004" ) { + // This can sometimes happen if we have + // unclosed html tags (For example + // when converting a title attribute + // during a recursive call that contains + // a e.g. . + $element = substr( $element, 0, -1 ); } } else { // If we hit here, then Language Converter could be tricked @@ -436,7 +443,14 @@ if ( $element !== '' && preg_match( '/^(<[^>\s]*+)\s([^>]*+)(.*+)$/', $element, $elementMatches ) ) { + // FIXME, this decodes entities, so if you have something + // like the bar won't get + // translated since after entity decoding it looks like + // unclosed html and we call this method recursively + // on attributes. $attrs = Sanitizer::decodeTagAttributes( $elementMatches[2] ); + // Ensure self-closing tags stay self-closing. + $close = substr( $elementMatches[2], -1 ) === '/' ? ' /' : ''; $changed = false; foreach ( [ 'title', 'alt' ] as $attrName ) { if ( !isset( $attrs[$attrName] ) ) { @@ -455,7 +469,7 @@ } if ( $changed ) { $element = $elementMatches[1] . Html::expandAttributes( $attrs ) . - $elementMatches[3]; + $close . $elementMatches[3]; } } $literalBlob .= $element . "\000"; diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 86db951..0950533 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -17434,7 +17434,7 @@ [[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] !! html -http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> +http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220" /> !! end -- To view, visit https://gerrit.wikimedia.org/r/391499 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I077d30c50fcb419837fef937d27caca307153d2d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_29 Gerrit-Owner: Brian Wolff
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_29]: Fix langauge converter parser test with self-close tags
Brian Wolff has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391499 ) Change subject: Fix langauge converter parser test with self-close tags .. Fix langauge converter parser test with self-close tags This fixes an issue in f21f3942 where if there was an html element with an alt or title attribute containing an entity, an ascii EOT control character (0x04) may become inserted into the text if language converter was enabled. Due to a really old bug in language converter, self-closed tags got turned into non-self closed tags. However due a different bug which was fixed in f21f3942 this code path was rarely taken so nobody noticed until now. Follow-up Idbc45cac12 Bug: T180552 Change-Id: I077d30c50fcb419837fef937d27caca307153d2d --- M languages/LanguageConverter.php M tests/parser/parserTests.txt 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index e9a9642..187727f 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -359,7 +359,6 @@ if ( $this->guessVariant( $text, $toVariant ) ) { return $text; } - /* we convert everything except: 1. HTML markups (anything between < and >) 2. HTML entities @@ -395,6 +394,7 @@ // Guard against delimiter nulls in the input // (should never happen: see T159174) $text = str_replace( "\000", '', $text ); + $text = str_replace( "\004", '', $text ); $markupMatches = null; $elementMatches = null; @@ -409,6 +409,13 @@ // We hit the end. $elementPos = strlen( $text ); $element = ''; + } elseif( substr( $element, -1 ) === "\004" ) { + // This can sometimes happen if we have + // unclosed html tags (For example + // when converting a title attribute + // during a recursive call that contains + // a e.g. . + $element = substr( $element, 0, -1 ); } } else { // If we hit here, then Language Converter could be tricked @@ -436,7 +443,14 @@ if ( $element !== '' && preg_match( '/^(<[^>\s]*+)\s([^>]*+)(.*+)$/', $element, $elementMatches ) ) { + // FIXME, this decodes entities, so if you have something + // like the bar won't get + // translated since after entity decoding it looks like + // unclosed html and we call this method recursively + // on attributes. $attrs = Sanitizer::decodeTagAttributes( $elementMatches[2] ); + // Ensure self-closing tags stay self-closing. + $close = substr( $elementMatches[2], -1 ) === '/' ? ' /' : ''; $changed = false; foreach ( [ 'title', 'alt' ] as $attrName ) { if ( !isset( $attrs[$attrName] ) ) { @@ -455,7 +469,7 @@ } if ( $changed ) { $element = $elementMatches[1] . Html::expandAttributes( $attrs ) . - $elementMatches[3]; + $close . $elementMatches[3]; } } $literalBlob .= $element . "\000"; diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 86db951..0950533 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -17434,7 +17434,7 @@ [[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] !! html -http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> +http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220" /> !! end -- To view, visit https://gerrit.wikimedia.org/r/391499 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I077d30c50fcb419837fef937d27caca307153d2d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_29 Gerrit-Owner: Brian WolffGerrit-Reviewer: Brian Wolff
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_30]: Fix langauge converter parser test with self-close tags
Brian Wolff has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391498 ) Change subject: Fix langauge converter parser test with self-close tags .. Fix langauge converter parser test with self-close tags This fixes an issue in f21f3942 where if there was an html element with an alt or title attribute containing an entity, an ascii EOT control character (0x04) may become inserted into the text if language converter was enabled. Due to a really old bug in language converter, self-closed tags got turned into non-self closed tags. However due a different bug which was fixed in f21f3942 this code path was rarely taken so nobody noticed until now. Follow-up Idbc45cac12 Bug: T180552 Change-Id: I077d30c50fcb419837fef937d27caca307153d2d --- M languages/LanguageConverter.php M tests/parser/parserTests.txt 2 files changed, 17 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/98/391498/1 diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 8e98abd..1d78402 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -353,7 +353,6 @@ if ( $this->guessVariant( $text, $toVariant ) ) { return $text; } - /* we convert everything except: 1. HTML markups (anything between < and >) 2. HTML entities @@ -389,6 +388,7 @@ // Guard against delimiter nulls in the input // (should never happen: see T159174) $text = str_replace( "\000", '', $text ); + $text = str_replace( "\004", '', $text ); $markupMatches = null; $elementMatches = null; @@ -403,6 +403,13 @@ // We hit the end. $elementPos = strlen( $text ); $element = ''; + } elseif( substr( $element, -1 ) === "\004" ) { + // This can sometimes happen if we have + // unclosed html tags (For example + // when converting a title attribute + // during a recursive call that contains + // a e.g. . + $element = substr( $element, 0, -1 ); } } else { // If we hit here, then Language Converter could be tricked @@ -430,7 +437,14 @@ if ( $element !== '' && preg_match( '/^(<[^>\s]*+)\s([^>]*+)(.*+)$/', $element, $elementMatches ) ) { + // FIXME, this decodes entities, so if you have something + // like the bar won't get + // translated since after entity decoding it looks like + // unclosed html and we call this method recursively + // on attributes. $attrs = Sanitizer::decodeTagAttributes( $elementMatches[2] ); + // Ensure self-closing tags stay self-closing. + $close = substr( $elementMatches[2], -1 ) === '/' ? ' /' : ''; $changed = false; foreach ( [ 'title', 'alt' ] as $attrName ) { if ( !isset( $attrs[$attrName] ) ) { @@ -449,7 +463,7 @@ } if ( $changed ) { $element = $elementMatches[1] . Html::expandAttributes( $attrs ) . - $elementMatches[3]; + $close . $elementMatches[3]; } } $literalBlob .= $element . "\000"; diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 8b4e2ef..5663316 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -18347,7 +18347,7 @@ [[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] !! html -http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> +http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220" /> !! end -- To view, visit https://gerrit.wikimedia.org/r/391498 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I077d30c50fcb419837fef937d27caca307153d2d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_30 Gerrit-Owner: Brian Wolff
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_30]: Fix langauge converter parser test with self-close tags
Brian Wolff has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391498 ) Change subject: Fix langauge converter parser test with self-close tags .. Fix langauge converter parser test with self-close tags This fixes an issue in f21f3942 where if there was an html element with an alt or title attribute containing an entity, an ascii EOT control character (0x04) may become inserted into the text if language converter was enabled. Due to a really old bug in language converter, self-closed tags got turned into non-self closed tags. However due a different bug which was fixed in f21f3942 this code path was rarely taken so nobody noticed until now. Follow-up Idbc45cac12 Bug: T180552 Change-Id: I077d30c50fcb419837fef937d27caca307153d2d --- M languages/LanguageConverter.php M tests/parser/parserTests.txt 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 8e98abd..1d78402 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -353,7 +353,6 @@ if ( $this->guessVariant( $text, $toVariant ) ) { return $text; } - /* we convert everything except: 1. HTML markups (anything between < and >) 2. HTML entities @@ -389,6 +388,7 @@ // Guard against delimiter nulls in the input // (should never happen: see T159174) $text = str_replace( "\000", '', $text ); + $text = str_replace( "\004", '', $text ); $markupMatches = null; $elementMatches = null; @@ -403,6 +403,13 @@ // We hit the end. $elementPos = strlen( $text ); $element = ''; + } elseif( substr( $element, -1 ) === "\004" ) { + // This can sometimes happen if we have + // unclosed html tags (For example + // when converting a title attribute + // during a recursive call that contains + // a e.g. . + $element = substr( $element, 0, -1 ); } } else { // If we hit here, then Language Converter could be tricked @@ -430,7 +437,14 @@ if ( $element !== '' && preg_match( '/^(<[^>\s]*+)\s([^>]*+)(.*+)$/', $element, $elementMatches ) ) { + // FIXME, this decodes entities, so if you have something + // like the bar won't get + // translated since after entity decoding it looks like + // unclosed html and we call this method recursively + // on attributes. $attrs = Sanitizer::decodeTagAttributes( $elementMatches[2] ); + // Ensure self-closing tags stay self-closing. + $close = substr( $elementMatches[2], -1 ) === '/' ? ' /' : ''; $changed = false; foreach ( [ 'title', 'alt' ] as $attrName ) { if ( !isset( $attrs[$attrName] ) ) { @@ -449,7 +463,7 @@ } if ( $changed ) { $element = $elementMatches[1] . Html::expandAttributes( $attrs ) . - $elementMatches[3]; + $close . $elementMatches[3]; } } $literalBlob .= $element . "\000"; diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 8b4e2ef..5663316 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -18347,7 +18347,7 @@ [[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] !! html -http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> +http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220" /> !! end -- To view, visit https://gerrit.wikimedia.org/r/391498 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I077d30c50fcb419837fef937d27caca307153d2d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_30 Gerrit-Owner: Brian WolffGerrit-Reviewer: Brian Wolff
[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Fix langauge converter parser test with self-close tags
Brian Wolff has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391497 ) Change subject: Fix langauge converter parser test with self-close tags .. Fix langauge converter parser test with self-close tags This fixes an issue in f21f3942 where if there was an html element with an alt or title attribute containing an entity, an ascii EOT control character (0x04) may become inserted into the text if language converter was enabled. Due to a really old bug in language converter, self-closed tags got turned into non-self closed tags. However due a different bug which was fixed in f21f3942 this code path was rarely taken so nobody noticed until now. Follow-up Idbc45cac12 Bug: T180552 Change-Id: I077d30c50fcb419837fef937d27caca307153d2d --- M languages/LanguageConverter.php M tests/parser/parserTests.txt 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 8e98abd..1d78402 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -353,7 +353,6 @@ if ( $this->guessVariant( $text, $toVariant ) ) { return $text; } - /* we convert everything except: 1. HTML markups (anything between < and >) 2. HTML entities @@ -389,6 +388,7 @@ // Guard against delimiter nulls in the input // (should never happen: see T159174) $text = str_replace( "\000", '', $text ); + $text = str_replace( "\004", '', $text ); $markupMatches = null; $elementMatches = null; @@ -403,6 +403,13 @@ // We hit the end. $elementPos = strlen( $text ); $element = ''; + } elseif( substr( $element, -1 ) === "\004" ) { + // This can sometimes happen if we have + // unclosed html tags (For example + // when converting a title attribute + // during a recursive call that contains + // a e.g. . + $element = substr( $element, 0, -1 ); } } else { // If we hit here, then Language Converter could be tricked @@ -430,7 +437,14 @@ if ( $element !== '' && preg_match( '/^(<[^>\s]*+)\s([^>]*+)(.*+)$/', $element, $elementMatches ) ) { + // FIXME, this decodes entities, so if you have something + // like the bar won't get + // translated since after entity decoding it looks like + // unclosed html and we call this method recursively + // on attributes. $attrs = Sanitizer::decodeTagAttributes( $elementMatches[2] ); + // Ensure self-closing tags stay self-closing. + $close = substr( $elementMatches[2], -1 ) === '/' ? ' /' : ''; $changed = false; foreach ( [ 'title', 'alt' ] as $attrName ) { if ( !isset( $attrs[$attrName] ) ) { @@ -449,7 +463,7 @@ } if ( $changed ) { $element = $elementMatches[1] . Html::expandAttributes( $attrs ) . - $elementMatches[3]; + $close . $elementMatches[3]; } } $literalBlob .= $element . "\000"; diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 7e678d8..56879ff 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -18515,7 +18515,7 @@ [[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] !! html -http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> +http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220" /> !! end -- To view, visit https://gerrit.wikimedia.org/r/391497 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I077d30c50fcb419837fef937d27caca307153d2d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Brian WolffGerrit-Reviewer: Brian Wolff
[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Fix langauge converter parser test with self-close tags
Brian Wolff has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391497 ) Change subject: Fix langauge converter parser test with self-close tags .. Fix langauge converter parser test with self-close tags This fixes an issue in f21f3942 where if there was an html element with an alt or title attribute containing an entity, an ascii EOT control character (0x04) may become inserted into the text if language converter was enabled. Due to a really old bug in language converter, self-closed tags got turned into non-self closed tags. However due a different bug which was fixed in f21f3942 this code path was rarely taken so nobody noticed until now. Follow-up Idbc45cac12 Bug: T180552 Change-Id: I077d30c50fcb419837fef937d27caca307153d2d --- M languages/LanguageConverter.php M tests/parser/parserTests.txt 2 files changed, 17 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/97/391497/1 diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 8e98abd..1d78402 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -353,7 +353,6 @@ if ( $this->guessVariant( $text, $toVariant ) ) { return $text; } - /* we convert everything except: 1. HTML markups (anything between < and >) 2. HTML entities @@ -389,6 +388,7 @@ // Guard against delimiter nulls in the input // (should never happen: see T159174) $text = str_replace( "\000", '', $text ); + $text = str_replace( "\004", '', $text ); $markupMatches = null; $elementMatches = null; @@ -403,6 +403,13 @@ // We hit the end. $elementPos = strlen( $text ); $element = ''; + } elseif( substr( $element, -1 ) === "\004" ) { + // This can sometimes happen if we have + // unclosed html tags (For example + // when converting a title attribute + // during a recursive call that contains + // a e.g. . + $element = substr( $element, 0, -1 ); } } else { // If we hit here, then Language Converter could be tricked @@ -430,7 +437,14 @@ if ( $element !== '' && preg_match( '/^(<[^>\s]*+)\s([^>]*+)(.*+)$/', $element, $elementMatches ) ) { + // FIXME, this decodes entities, so if you have something + // like the bar won't get + // translated since after entity decoding it looks like + // unclosed html and we call this method recursively + // on attributes. $attrs = Sanitizer::decodeTagAttributes( $elementMatches[2] ); + // Ensure self-closing tags stay self-closing. + $close = substr( $elementMatches[2], -1 ) === '/' ? ' /' : ''; $changed = false; foreach ( [ 'title', 'alt' ] as $attrName ) { if ( !isset( $attrs[$attrName] ) ) { @@ -449,7 +463,7 @@ } if ( $changed ) { $element = $elementMatches[1] . Html::expandAttributes( $attrs ) . - $elementMatches[3]; + $close . $elementMatches[3]; } } $literalBlob .= $element . "\000"; diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 7e678d8..56879ff 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -18515,7 +18515,7 @@ [[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] !! html -http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> +http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220" /> !! end -- To view, visit https://gerrit.wikimedia.org/r/391497 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I077d30c50fcb419837fef937d27caca307153d2d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Brian Wolff
[MediaWiki-commits] [Gerrit] operations/puppet[production]: Skip upper limits for values in navtiming2
Phedenskog has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391496 ) Change subject: Skip upper limits for values in navtiming2 .. Skip upper limits for values in navtiming2 The upper limit was before we started to work with median and percentiles and doesn't gives us any value (it rather hide things instead). Bug: T104902 Change-Id: I2e98d4f1e37df39d04dec186b31ade7cdc880606 --- M modules/webperf/files/navtiming.py M modules/webperf/files/navtiming_fixture.yaml 2 files changed, 86 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/96/391496/1 diff --git a/modules/webperf/files/navtiming.py b/modules/webperf/files/navtiming.py index 5e7d737..ca5e13b 100755 --- a/modules/webperf/files/navtiming.py +++ b/modules/webperf/files/navtiming.py @@ -339,7 +339,7 @@ def is_sanev2(value): -return isinstance(value, int) and value >= 0 and value < 18 +return isinstance(value, int) and value >= 0 @handles('SaveTiming') @@ -471,7 +471,7 @@ if not isSane: break -# If one of the metrics are over the max then skip it entirely +# If one of the metrics are under the min then skip it entirely if not isSane: yield make_count('frontend.navtiming_discard', 'isSane') else: diff --git a/modules/webperf/files/navtiming_fixture.yaml b/modules/webperf/files/navtiming_fixture.yaml index b2b9f63..3f9f408 100644 --- a/modules/webperf/files/navtiming_fixture.yaml +++ b/modules/webperf/files/navtiming_fixture.yaml @@ -501,7 +501,90 @@ - frontend.navtiming.domInteractive.by_browser.Edge.all:7403|ms - frontend.navtiming.domInteractive.by_continent.Europe:7403|ms - frontend.navtiming.domInteractive.by_country.France:7403|ms - - frontend.navtiming_discard.isSane:1|c + - frontend.navtiming2.onLoad.desktop.anonymous:2|ms + - frontend.navtiming2.onLoad.desktop.overall:2|ms + - frontend.navtiming2.onLoad.overall:2|ms + - frontend.navtiming2.onLoad.by_browser.Edge.15:2|ms + - frontend.navtiming2.onLoad.by_browser.Edge.all:2|ms + - frontend.navtiming2.onLoad.by_continent.Europe:2|ms + - frontend.navtiming2.onLoad.by_country.France:2|ms + - frontend.navtiming2.dns.desktop.anonymous:0|ms + - frontend.navtiming2.dns.desktop.overall:0|ms + - frontend.navtiming2.dns.overall:0|ms + - frontend.navtiming2.dns.by_browser.Edge.15:0|ms + - frontend.navtiming2.dns.by_browser.Edge.all:0|ms + - frontend.navtiming2.dns.by_continent.Europe:0|ms + - frontend.navtiming2.dns.by_country.France:0|ms + - frontend.navtiming2.request.desktop.anonymous:543|ms + - frontend.navtiming2.request.desktop.overall:543|ms + - frontend.navtiming2.request.overall:543|ms + - frontend.navtiming2.request.by_browser.Edge.15:543|ms + - frontend.navtiming2.request.by_browser.Edge.all:543|ms + - frontend.navtiming2.request.by_continent.Europe:543|ms + - frontend.navtiming2.request.by_country.France:543|ms + - frontend.navtiming2.processing.desktop.anonymous:196791|ms + - frontend.navtiming2.processing.desktop.overall:196791|ms + - frontend.navtiming2.processing.overall:196791|ms + - frontend.navtiming2.processing.by_browser.Edge.15:196791|ms + - frontend.navtiming2.processing.by_browser.Edge.all:196791|ms + - frontend.navtiming2.processing.by_continent.Europe:196791|ms + - frontend.navtiming2.processing.by_country.France:196791|ms + - frontend.navtiming2.firstPaint.desktop.anonymous:9356|ms + - frontend.navtiming2.firstPaint.desktop.overall:9356|ms + - frontend.navtiming2.firstPaint.overall:9356|ms + - frontend.navtiming2.firstPaint.by_browser.Edge.15:9356|ms + - frontend.navtiming2.firstPaint.by_browser.Edge.all:9356|ms + - frontend.navtiming2.firstPaint.by_continent.Europe:9356|ms + - frontend.navtiming2.firstPaint.by_country.France:9356|ms + - frontend.navtiming2.tcp.desktop.anonymous:0|ms + - frontend.navtiming2.tcp.desktop.overall:0|ms + - frontend.navtiming2.tcp.overall:0|ms + - frontend.navtiming2.tcp.by_browser.Edge.15:0|ms + - frontend.navtiming2.tcp.by_browser.Edge.all:0|ms + - frontend.navtiming2.tcp.by_continent.Europe:0|ms + - frontend.navtiming2.tcp.by_country.France:0|ms + - frontend.navtiming2.loadEventEnd.desktop.anonymous:204085|ms + - frontend.navtiming2.loadEventEnd.desktop.overall:204085|ms + - frontend.navtiming2.loadEventEnd.overall:204085|ms + - frontend.navtiming2.loadEventEnd.by_browser.Edge.15:204085|ms + - frontend.navtiming2.loadEventEnd.by_browser.Edge.all:204085|ms + - frontend.navtiming2.loadEventEnd.by_continent.Europe:204085|ms + - frontend.navtiming2.loadEventEnd.by_country.France:204085|ms + - frontend.navtiming2.loadEventStart.desktop.anonymous:204083|ms + - frontend.navtiming2.loadEventStart.desktop.overall:204083|ms + - frontend.navtiming2.loadEventStart.overall:204083|ms + - frontend.navtiming2.loadEventStart.by_browser.Edge.15:204083|ms + -
[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Follow-up 5e56f01f1. Rebase failure.
Brian Wolff has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391495 ) Change subject: Follow-up 5e56f01f1. Rebase failure. .. Follow-up 5e56f01f1. Rebase failure. Bug: T180551 Change-Id: I07a8c2555f08c6c731cd7e1917be451ec40d4d0c --- M tests/parser/parserTests.txt 1 file changed, 0 insertions(+), 14 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/95/391495/1 diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 245ca9f..7e678d8 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -18510,20 +18510,6 @@ !! options language=sr variant=sr-el !! wikitext --{H|abc=>sr-el:" onload="alert(1)" data-foo="}- - -[[File:Foobar.jpg|alt=-{}-abc-{}-]] -!! html - -http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> - -!! end - -!! test -Language converter glossary rules inside attributes (T119158) -!! options -language=sr variant=sr-el -!! wikitext -{H|foAjrjvi=>sr-el:" onload="alert(1)" data-foo="}- [[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] -- To view, visit https://gerrit.wikimedia.org/r/391495 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I07a8c2555f08c6c731cd7e1917be451ec40d4d0c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Brian Wolff___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Follow-up 5e56f01f1. Rebase failure.
Brian Wolff has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391495 ) Change subject: Follow-up 5e56f01f1. Rebase failure. .. Follow-up 5e56f01f1. Rebase failure. Bug: T180551 Change-Id: I07a8c2555f08c6c731cd7e1917be451ec40d4d0c --- M tests/parser/parserTests.txt 1 file changed, 0 insertions(+), 14 deletions(-) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 245ca9f..7e678d8 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -18510,20 +18510,6 @@ !! options language=sr variant=sr-el !! wikitext --{H|abc=>sr-el:" onload="alert(1)" data-foo="}- - -[[File:Foobar.jpg|alt=-{}-abc-{}-]] -!! html - -http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> - -!! end - -!! test -Language converter glossary rules inside attributes (T119158) -!! options -language=sr variant=sr-el -!! wikitext -{H|foAjrjvi=>sr-el:" onload="alert(1)" data-foo="}- [[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] -- To view, visit https://gerrit.wikimedia.org/r/391495 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I07a8c2555f08c6c731cd7e1917be451ec40d4d0c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Brian WolffGerrit-Reviewer: Brian Wolff ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Fix LanguageSrTest for language converter
Brian Wolff has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391484 ) Change subject: Fix LanguageSrTest for language converter .. Fix LanguageSrTest for language converter Language converter seems to maintain state between parser invocations. Use a more unique string for the test. This is a follow-up to 98b6635895. Bug: T180551 Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c --- M tests/parser/parserTests.txt 1 file changed, 14 insertions(+), 0 deletions(-) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index fb549f5..245ca9f 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -18520,6 +18520,20 @@ !! end !! test +Language converter glossary rules inside attributes (T119158) +!! options +language=sr variant=sr-el +!! wikitext +-{H|foAjrjvi=>sr-el:" onload="alert(1)" data-foo="}- + +[[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] +!! html + +http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> + +!! end + +!! test Self closed html pairs (T7487) !! wikitext Centered text -- To view, visit https://gerrit.wikimedia.org/r/391484 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Brian WolffGerrit-Reviewer: Brian Wolff Gerrit-Reviewer: C. Scott Ananian Gerrit-Reviewer: Jackmcbarn Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_30]: Fix LanguageSrTest for language converter
Brian Wolff has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391494 ) Change subject: Fix LanguageSrTest for language converter .. Fix LanguageSrTest for language converter Language converter seems to maintain state between parser invocations. Use a more unique string for the test. This is a follow-up to 98b6635895. Bug: T180551 Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c --- M tests/parser/parserTests.txt 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 92cf572..8b4e2ef 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -18342,9 +18342,9 @@ !! options language=sr variant=sr-el !! wikitext --{H|abc=>sr-el:" onload="alert(1)" data-foo="}- +-{H|foAjrjvi=>sr-el:" onload="alert(1)" data-foo="}- -[[File:Foobar.jpg|alt=-{}-abc-{}-]] +[[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] !! html http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> -- To view, visit https://gerrit.wikimedia.org/r/391494 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_30 Gerrit-Owner: Brian WolffGerrit-Reviewer: Brian Wolff ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_30]: Fix LanguageSrTest for language converter
Brian Wolff has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391494 ) Change subject: Fix LanguageSrTest for language converter .. Fix LanguageSrTest for language converter Language converter seems to maintain state between parser invocations. Use a more unique string for the test. This is a follow-up to 98b6635895. Bug: T180551 Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c --- M tests/parser/parserTests.txt 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/94/391494/1 diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 92cf572..8b4e2ef 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -18342,9 +18342,9 @@ !! options language=sr variant=sr-el !! wikitext --{H|abc=>sr-el:" onload="alert(1)" data-foo="}- +-{H|foAjrjvi=>sr-el:" onload="alert(1)" data-foo="}- -[[File:Foobar.jpg|alt=-{}-abc-{}-]] +[[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] !! html http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> -- To view, visit https://gerrit.wikimedia.org/r/391494 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_30 Gerrit-Owner: Brian Wolff___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_29]: Fix LanguageSrTest for language converter
Brian Wolff has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391493 ) Change subject: Fix LanguageSrTest for language converter .. Fix LanguageSrTest for language converter Language converter seems to maintain state between parser invocations. Use a more unique string for the test. This is a follow-up to 98b6635895. Bug: T180551 Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c --- M tests/parser/parserTests.txt 1 file changed, 2 insertions(+), 2 deletions(-) Approvals: Brian Wolff: Verified; Looks good to me, approved diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 95b3f5a..86db951 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -17429,9 +17429,9 @@ !! options language=sr variant=sr-el !! wikitext --{H|abc=>sr-el:" onload="alert(1)" data-foo="}- +-{H|foAjrjvi=>sr-el:" onload="alert(1)" data-foo="}- -[[File:Foobar.jpg|alt=-{}-abc-{}-]] +[[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] !! html http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> -- To view, visit https://gerrit.wikimedia.org/r/391493 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_29 Gerrit-Owner: Brian WolffGerrit-Reviewer: Brian Wolff ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_29]: Fix LanguageSrTest for language converter
Brian Wolff has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391493 ) Change subject: Fix LanguageSrTest for language converter .. Fix LanguageSrTest for language converter Language converter seems to maintain state between parser invocations. Use a more unique string for the test. This is a follow-up to 98b6635895. Bug: T180551 Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c --- M tests/parser/parserTests.txt 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/93/391493/1 diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 95b3f5a..86db951 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -17429,9 +17429,9 @@ !! options language=sr variant=sr-el !! wikitext --{H|abc=>sr-el:" onload="alert(1)" data-foo="}- +-{H|foAjrjvi=>sr-el:" onload="alert(1)" data-foo="}- -[[File:Foobar.jpg|alt=-{}-abc-{}-]] +[[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] !! html http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> -- To view, visit https://gerrit.wikimedia.org/r/391493 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_29 Gerrit-Owner: Brian Wolff___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_28]: Fix LanguageSrTest for language converter
Brian Wolff has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391492 ) Change subject: Fix LanguageSrTest for language converter .. Fix LanguageSrTest for language converter Language converter seems to maintain state between parser invocations. Use a more unique string for the test. This is a follow-up to 98b6635895. Bug: T180551 Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c --- M tests/parser/parserTests.txt 1 file changed, 2 insertions(+), 2 deletions(-) Approvals: Brian Wolff: Verified; Looks good to me, approved diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 38a6e47..19bf56f 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -17144,9 +17144,9 @@ !! options language=sr variant=sr-el !! wikitext --{H|abc=>sr-el:" onload="alert(1)" data-foo="}- +-{H|foAjrjvi=>sr-el:" onload="alert(1)" data-foo="}- -[[File:Foobar.jpg|alt=-{}-abc-{}-]] +[[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] !! html http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> -- To view, visit https://gerrit.wikimedia.org/r/391492 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_28 Gerrit-Owner: Brian WolffGerrit-Reviewer: Brian Wolff ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_27]: Fix LanguageSrTest for language converter
Brian Wolff has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391491 ) Change subject: Fix LanguageSrTest for language converter .. Fix LanguageSrTest for language converter Language converter seems to maintain state between parser invocations. Use a more unique string for the test. This is a follow-up to 98b6635895. Bug: T180551 Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c --- M tests/parser/parserTests.txt 1 file changed, 2 insertions(+), 2 deletions(-) Approvals: Brian Wolff: Verified; Looks good to me, approved diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 4a52c46..b498105 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -16767,9 +16767,9 @@ !! options language=sr variant=sr-el !! wikitext --{H|abc=>sr-el:" onload="alert(1)" data-foo="}- +-{H|foAjrjvi=>sr-el:" onload="alert(1)" data-foo="}- -[[File:Foobar.jpg|alt=-{}-abc-{}-]] +[[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] !! html http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> -- To view, visit https://gerrit.wikimedia.org/r/391491 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_27 Gerrit-Owner: Brian WolffGerrit-Reviewer: Brian Wolff Gerrit-Reviewer: C. Scott Ananian Gerrit-Reviewer: Jackmcbarn ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_28]: Fix LanguageSrTest for language converter
Brian Wolff has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391492 ) Change subject: Fix LanguageSrTest for language converter .. Fix LanguageSrTest for language converter Language converter seems to maintain state between parser invocations. Use a more unique string for the test. This is a follow-up to 98b6635895. Bug: T180551 Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c --- M tests/parser/parserTests.txt 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/92/391492/1 diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 38a6e47..19bf56f 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -17144,9 +17144,9 @@ !! options language=sr variant=sr-el !! wikitext --{H|abc=>sr-el:" onload="alert(1)" data-foo="}- +-{H|foAjrjvi=>sr-el:" onload="alert(1)" data-foo="}- -[[File:Foobar.jpg|alt=-{}-abc-{}-]] +[[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] !! html http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> -- To view, visit https://gerrit.wikimedia.org/r/391492 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_28 Gerrit-Owner: Brian Wolff___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_27]: Fix parser test for language converter
Brian Wolff has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391491 ) Change subject: Fix parser test for language converter .. Fix parser test for language converter Language converter seems to maintain state between parser invocations. Use a more unique string for the test. This is a follow-up to 98b6635895. Bug: T180551 Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c --- M tests/parser/parserTests.txt 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/91/391491/1 diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 4a52c46..b498105 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -16767,9 +16767,9 @@ !! options language=sr variant=sr-el !! wikitext --{H|abc=>sr-el:" onload="alert(1)" data-foo="}- +-{H|foAjrjvi=>sr-el:" onload="alert(1)" data-foo="}- -[[File:Foobar.jpg|alt=-{}-abc-{}-]] +[[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] !! html http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> -- To view, visit https://gerrit.wikimedia.org/r/391491 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_27 Gerrit-Owner: Brian Wolff___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] analytics/wikistats2[master]: [VERY VERY WIP] Work so far on simplifying and fixing breakd...
Milimetric has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391490 ) Change subject: [VERY VERY WIP] Work so far on simplifying and fixing breakdowns .. [VERY VERY WIP] Work so far on simplifying and fixing breakdowns Work so far: * break everything * unify the breakdown/overall logic and data so it all looks and works the same * simplify the components by factoring out common logic * simplify the code by factoring out repeated logic * make sure all the little bits and pieces are still functioning (this will mean substantial work) Bug: T180556 Change-Id: I034b70b3d5a0034aa87013650884691c1c94e9f9 --- M src/components/dashboard/MetricBarWidget.vue M src/components/dashboard/MetricLineWidget.vue M src/components/dashboard/MetricWidget.vue M src/components/detail/Breakdowns.vue M src/components/detail/Detail.vue M src/components/detail/GraphPanel.vue M src/components/detail/chart/BarChart.vue M src/components/detail/chart/LineChart.vue M src/components/detail/chart/TableChart.vue M src/config/metrics/content.js M src/models/DimensionalData.js M src/models/GraphModel.js M src/utils.js M test/GraphModel.spec.js 14 files changed, 180 insertions(+), 205 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/analytics/wikistats2 refs/changes/90/391490/1 diff --git a/src/components/dashboard/MetricBarWidget.vue b/src/components/dashboard/MetricBarWidget.vue index b2dfc2e..72384c4 100644 --- a/src/components/dashboard/MetricBarWidget.vue +++ b/src/components/dashboard/MetricBarWidget.vue @@ -52,7 +52,7 @@ ); g.selectAll('*').remove(); -const rowData = this.graphModel.getGraphData(); +const rowData = this.graphModel.graphData; const n = root.node(), width = n.offsetWidth - margin.left - margin.right, diff --git a/src/components/dashboard/MetricLineWidget.vue b/src/components/dashboard/MetricLineWidget.vue index be6f956..c0520de 100644 --- a/src/components/dashboard/MetricLineWidget.vue +++ b/src/components/dashboard/MetricLineWidget.vue @@ -47,7 +47,7 @@ ); g.selectAll('*').remove(); -const rowData = this.graphModel.getGraphData(); +const rowData = this.graphModel.graphData; function resize () { g.html(""); @@ -70,10 +70,10 @@ g.attr('width', width).attr('height', height); g.append('path').datum(rowData) .attr('d', area) -.style('fill', 'url(#grad-'+self.graphModel.getArea()+')') +.style('fill', 'url(#grad-'+self.graphModel.area+')') .style('stroke-width', '0'); let gradient = g.append('linearGradient') -.attr('id', 'grad-'+self.graphModel.getArea()) +.attr('id', 'grad-'+self.graphModel.area) .attr('x1',"0%") .attr('y1',"0%") .attr('x2',"0%") diff --git a/src/components/dashboard/MetricWidget.vue b/src/components/dashboard/MetricWidget.vue index bfcc4c5..a31d027 100644 --- a/src/components/dashboard/MetricWidget.vue +++ b/src/components/dashboard/MetricWidget.vue @@ -137,7 +137,7 @@ return _.last(this.graphData); }, graphData: function () { -return this.graphModel.getGraphData(); +return this.graphModel.graphData; }, changeMoM: function () { const data = this.graphData; diff --git a/src/components/detail/Breakdowns.vue b/src/components/detail/Breakdowns.vue index 8ee6906..3765dd6 100644 --- a/src/components/detail/Breakdowns.vue +++ b/src/components/detail/Breakdowns.vue @@ -4,54 +4,49 @@ Filter and Split - + +v-model="graphModel.activeBreakdown" +:value="b"> -Split by {{b.name}} - + +Overall {{b.name}} + + + +Split by {{b.name}} + + - - -{{bv.name}} - + + + + +{{bv.name}} + + +import utils from '../../utils'; + export default { name: 'breakdowns', props: ['graphModel'], + methods: { -breakdownToggled (index) { -this.graphModel.getBreakdowns().forEach((b, i) => { -if(i != index) { -this.graphModel.getBreakdowns()[i].on = false; -} -}) -this.updateState(); -}, -shouldBeChecked (index) { -
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_30]: Ignore long git hashes for eval-stdin.php
Reedy has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391488 ) Change subject: Ignore long git hashes for eval-stdin.php .. Ignore long git hashes for eval-stdin.php This reverts commit 5b205725842edbae6ccde5a13baf20c2eb3ec4ae. Change-Id: Ib47ffed1174628959b9ef537370ff88f8bcb22f1 (cherry picked from commit 417a83a1a3ddf374dff5a14d8a08cd4c6099d357) --- M maintenance/update.php 1 file changed, 4 insertions(+), 2 deletions(-) Approvals: Reedy: Verified; Looks good to me, approved diff --git a/maintenance/update.php b/maintenance/update.php index 08b1576..52e9017 100755 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -172,9 +172,11 @@ $badPhpUnit = dirname( __DIR__ ) . '/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php'; if ( file_exists( $badPhpUnit ) ) { + // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong // Bad versions of the file are: - // https://raw.githubusercontent.com/sebastianbergmann/phpunit/c820f91/src/Util/PHP/eval-stdin.php - // https://raw.githubusercontent.com/sebastianbergmann/phpunit/3aaddb1/src/Util/PHP/eval-stdin.php + // https://raw.githubusercontent.com/sebastianbergmann/phpunit/c820f915bfae34e5a836f94967a2a5ea5ef34f21/src/Util/PHP/eval-stdin.php + // https://raw.githubusercontent.com/sebastianbergmann/phpunit/3aaddb1c5bd9b9b8d070b4cf120e71c36fd08412/src/Util/PHP/eval-stdin.php + // @codingStandardsIgnoreEnd $md5 = md5_file( $badPhpUnit ); if ( $md5 === '120ac49800671dc383b6f3709c25c099' || $md5 === '28af792cb38fc9a1b236b91c1aad2876' -- To view, visit https://gerrit.wikimedia.org/r/391488 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ib47ffed1174628959b9ef537370ff88f8bcb22f1 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_30 Gerrit-Owner: ReedyGerrit-Reviewer: Reedy ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_30]: Ignore long git hashes for eval-stdin.php
Reedy has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391488 ) Change subject: Ignore long git hashes for eval-stdin.php .. Ignore long git hashes for eval-stdin.php This reverts commit 5b205725842edbae6ccde5a13baf20c2eb3ec4ae. Change-Id: Ib47ffed1174628959b9ef537370ff88f8bcb22f1 (cherry picked from commit 417a83a1a3ddf374dff5a14d8a08cd4c6099d357) --- M maintenance/update.php 1 file changed, 4 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/88/391488/1 diff --git a/maintenance/update.php b/maintenance/update.php index 08b1576..52e9017 100755 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -172,9 +172,11 @@ $badPhpUnit = dirname( __DIR__ ) . '/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php'; if ( file_exists( $badPhpUnit ) ) { + // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong // Bad versions of the file are: - // https://raw.githubusercontent.com/sebastianbergmann/phpunit/c820f91/src/Util/PHP/eval-stdin.php - // https://raw.githubusercontent.com/sebastianbergmann/phpunit/3aaddb1/src/Util/PHP/eval-stdin.php + // https://raw.githubusercontent.com/sebastianbergmann/phpunit/c820f915bfae34e5a836f94967a2a5ea5ef34f21/src/Util/PHP/eval-stdin.php + // https://raw.githubusercontent.com/sebastianbergmann/phpunit/3aaddb1c5bd9b9b8d070b4cf120e71c36fd08412/src/Util/PHP/eval-stdin.php + // @codingStandardsIgnoreEnd $md5 = md5_file( $badPhpUnit ); if ( $md5 === '120ac49800671dc383b6f3709c25c099' || $md5 === '28af792cb38fc9a1b236b91c1aad2876' -- To view, visit https://gerrit.wikimedia.org/r/391488 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib47ffed1174628959b9ef537370ff88f8bcb22f1 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_30 Gerrit-Owner: Reedy___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_29]: Ignore long git hashes for eval-stdin.php
Reedy has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391487 ) Change subject: Ignore long git hashes for eval-stdin.php .. Ignore long git hashes for eval-stdin.php This reverts commit 5b205725842edbae6ccde5a13baf20c2eb3ec4ae. Change-Id: Ib47ffed1174628959b9ef537370ff88f8bcb22f1 (cherry picked from commit 417a83a1a3ddf374dff5a14d8a08cd4c6099d357) --- M maintenance/update.php 1 file changed, 4 insertions(+), 2 deletions(-) Approvals: Reedy: Verified; Looks good to me, approved diff --git a/maintenance/update.php b/maintenance/update.php index f2f8a43..1a01381 100755 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -162,9 +162,11 @@ $badPhpUnit = dirname( __DIR__ ) . '/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php'; if ( file_exists( $badPhpUnit ) ) { + // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong // Bad versions of the file are: - // https://raw.githubusercontent.com/sebastianbergmann/phpunit/c820f91/src/Util/PHP/eval-stdin.php - // https://raw.githubusercontent.com/sebastianbergmann/phpunit/3aaddb1/src/Util/PHP/eval-stdin.php + // https://raw.githubusercontent.com/sebastianbergmann/phpunit/c820f915bfae34e5a836f94967a2a5ea5ef34f21/src/Util/PHP/eval-stdin.php + // https://raw.githubusercontent.com/sebastianbergmann/phpunit/3aaddb1c5bd9b9b8d070b4cf120e71c36fd08412/src/Util/PHP/eval-stdin.php + // @codingStandardsIgnoreEnd $md5 = md5_file( $badPhpUnit ); if ( $md5 === '120ac49800671dc383b6f3709c25c099' || $md5 === '28af792cb38fc9a1b236b91c1aad2876' -- To view, visit https://gerrit.wikimedia.org/r/391487 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ib47ffed1174628959b9ef537370ff88f8bcb22f1 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_29 Gerrit-Owner: ReedyGerrit-Reviewer: Reedy Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] operations...dcat[master]: Work around HHVM bug by using XMLWriter::writeAttribute()
Tim Starling has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391489 ) Change subject: Work around HHVM bug by using XMLWriter::writeAttribute() .. Work around HHVM bug by using XMLWriter::writeAttribute() HHVM has a bug which causes a null namespace URI passed to writeAttributeNS() to be converted to an empty string before being passed to libxml2. This causes libxml2 to output an invalid namespace declaration. So instead, use writeAttribute() to write the prefixed attribute name, bypassing libxml2's namespace support. libxml2 keeps a stack of current xmlns declarations, so you would think it would be possible to declare a namespace on the root element and then use it in subsequent elements by specifying the same URI each time. But libxml does not parse xmlns:prefix="..." attributes to add them to its declaration list, and has no other way to declare namespaces, so the relevant attributes would have to actually be present on the root element. Bug: T117534 Change-Id: Iae8c95adb7824dd9d44849dd54f1ccc67e70e084 --- M DCAT.php 1 file changed, 42 insertions(+), 44 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/dumps/dcat refs/changes/89/391489/1 diff --git a/DCAT.php b/DCAT.php index ce7e6e2..12811a7 100644 --- a/DCAT.php +++ b/DCAT.php @@ -163,22 +163,20 @@ ); $xml->startElementNS( 'dcat', 'accessURL', null ); - $xml->writeAttributeNS( 'rdf', 'resource', null, $url ); + $xml->writeAttribute( 'rdf:resource', $url ); $xml->endElement(); $xml->startElementNS( 'dcat', 'downloadURL', null ); - $xml->writeAttributeNS( 'rdf', 'resource', null, $url ); + $xml->writeAttribute( 'rdf:resource', $url ); $xml->endElement(); $xml->startElementNS( 'dcterms', 'issued', null ); - $xml->writeAttributeNS( 'rdf', 'datatype', null, - 'http://www.w3.org/2001/XMLSchema#date' ); + $xml->writeAttribute( 'rdf:datatype', 'http://www.w3.org/2001/XMLSchema#date' ); $xml->text( $dump['timestamp'] ); $xml->endElement(); $xml->startElementNS( 'dcat', 'byteSize', null ); - $xml->writeAttributeNS( 'rdf', 'datatype', null, - 'http://www.w3.org/2001/XMLSchema#decimal' ); + $xml->writeAttribute( 'rdf:datatype', 'http://www.w3.org/2001/XMLSchema#decimal' ); $xml->text( $dump['byteSize'] ); $xml->endElement(); } @@ -211,7 +209,7 @@ ); } $xml->startElementNS( 'dcterms', 'description', null ); - $xml->writeAttributeNS( 'xml', 'lang', null, $langCode ); + $xml->writeAttribute( 'xml:lang', $langCode ); $xml->text( $formatDescription ); $xml->endElement(); } @@ -253,21 +251,21 @@ array_push( $ids, $id ); $xml->startElementNS( 'rdf', 'Description', null ); - $xml->writeAttributeNS( 'rdf', 'about', null, $id ); + $xml->writeAttribute( 'rdf:about', $id ); $xml->startElementNS( 'rdf', 'type', null ); - $xml->writeAttributeNS( 'rdf', 'resource', null, + $xml->writeAttribute( 'rdf:resource', 'http://www.w3.org/ns/dcat#Distribution' ); $xml->endElement(); $xml->startElementNS( 'dcterms', 'license', null ); - $xml->writeAttributeNS( 'rdf', 'resource', null, + $xml->writeAttribute( 'rdf:resource', $data['config']["$prefix-info"]['license'] ); $xml->endElement(); if ( !$isDump ) { $xml->startElementNS( 'dcat', 'accessURL', null ); - $xml->writeAttributeNS( 'rdf', 'resource', null, + $xml->writeAttribute( 'rdf:resource', $data['config']["$prefix-info"]['accessURL'] ); $xml->endElement(); } else { @@ -302,7 +300,7 @@ foreach ( $data['i18n'] as $langCode => $langData ) { if ( array_key_exists( "dataset-$type-title", $langData ) ) { $xml->startElementNS( 'dcterms', 'title', null ); - $xml->writeAttributeNS( 'xml', 'lang', null, $langCode ); + $xml->writeAttribute( 'xml:lang', $langCode ); if ( $type === 'live' ) { $xml->text( $langData['dataset-live-title'] ); } else { @@ -314,7 +312,7 @@ } if ( array_key_exists(
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_27]: Ignore long git hashes for eval-stdin.php
Reedy has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391486 ) Change subject: Ignore long git hashes for eval-stdin.php .. Ignore long git hashes for eval-stdin.php This reverts commit 5b205725842edbae6ccde5a13baf20c2eb3ec4ae. Change-Id: Ib47ffed1174628959b9ef537370ff88f8bcb22f1 (cherry picked from commit 417a83a1a3ddf374dff5a14d8a08cd4c6099d357) --- M maintenance/update.php 1 file changed, 4 insertions(+), 2 deletions(-) Approvals: Reedy: Verified; Looks good to me, approved diff --git a/maintenance/update.php b/maintenance/update.php index f800e4a..da81661 100755 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -167,9 +167,11 @@ $badPhpUnit = dirname( __DIR__ ) . '/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php'; if ( file_exists( $badPhpUnit ) ) { + // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong // Bad versions of the file are: - // https://raw.githubusercontent.com/sebastianbergmann/phpunit/c820f91/src/Util/PHP/eval-stdin.php - // https://raw.githubusercontent.com/sebastianbergmann/phpunit/3aaddb1/src/Util/PHP/eval-stdin.php + // https://raw.githubusercontent.com/sebastianbergmann/phpunit/c820f915bfae34e5a836f94967a2a5ea5ef34f21/src/Util/PHP/eval-stdin.php + // https://raw.githubusercontent.com/sebastianbergmann/phpunit/3aaddb1c5bd9b9b8d070b4cf120e71c36fd08412/src/Util/PHP/eval-stdin.php + // @codingStandardsIgnoreEnd $md5 = md5_file( $badPhpUnit ); if ( $md5 === '120ac49800671dc383b6f3709c25c099' || $md5 === '28af792cb38fc9a1b236b91c1aad2876' -- To view, visit https://gerrit.wikimedia.org/r/391486 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ib47ffed1174628959b9ef537370ff88f8bcb22f1 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_27 Gerrit-Owner: ReedyGerrit-Reviewer: Reedy ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_27]: Ignore long git hashes for eval-stdin.php
Reedy has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391486 ) Change subject: Ignore long git hashes for eval-stdin.php .. Ignore long git hashes for eval-stdin.php This reverts commit 5b205725842edbae6ccde5a13baf20c2eb3ec4ae. Change-Id: Ib47ffed1174628959b9ef537370ff88f8bcb22f1 (cherry picked from commit 417a83a1a3ddf374dff5a14d8a08cd4c6099d357) --- M maintenance/update.php 1 file changed, 4 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/86/391486/1 diff --git a/maintenance/update.php b/maintenance/update.php index f800e4a..da81661 100755 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -167,9 +167,11 @@ $badPhpUnit = dirname( __DIR__ ) . '/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php'; if ( file_exists( $badPhpUnit ) ) { + // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong // Bad versions of the file are: - // https://raw.githubusercontent.com/sebastianbergmann/phpunit/c820f91/src/Util/PHP/eval-stdin.php - // https://raw.githubusercontent.com/sebastianbergmann/phpunit/3aaddb1/src/Util/PHP/eval-stdin.php + // https://raw.githubusercontent.com/sebastianbergmann/phpunit/c820f915bfae34e5a836f94967a2a5ea5ef34f21/src/Util/PHP/eval-stdin.php + // https://raw.githubusercontent.com/sebastianbergmann/phpunit/3aaddb1c5bd9b9b8d070b4cf120e71c36fd08412/src/Util/PHP/eval-stdin.php + // @codingStandardsIgnoreEnd $md5 = md5_file( $badPhpUnit ); if ( $md5 === '120ac49800671dc383b6f3709c25c099' || $md5 === '28af792cb38fc9a1b236b91c1aad2876' -- To view, visit https://gerrit.wikimedia.org/r/391486 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib47ffed1174628959b9ef537370ff88f8bcb22f1 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_27 Gerrit-Owner: Reedy___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_29]: Ignore long git hashes for eval-stdin.php
Reedy has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391487 ) Change subject: Ignore long git hashes for eval-stdin.php .. Ignore long git hashes for eval-stdin.php This reverts commit 5b205725842edbae6ccde5a13baf20c2eb3ec4ae. Change-Id: Ib47ffed1174628959b9ef537370ff88f8bcb22f1 (cherry picked from commit 417a83a1a3ddf374dff5a14d8a08cd4c6099d357) --- M maintenance/update.php 1 file changed, 4 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/87/391487/1 diff --git a/maintenance/update.php b/maintenance/update.php index f2f8a43..1a01381 100755 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -162,9 +162,11 @@ $badPhpUnit = dirname( __DIR__ ) . '/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php'; if ( file_exists( $badPhpUnit ) ) { + // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong // Bad versions of the file are: - // https://raw.githubusercontent.com/sebastianbergmann/phpunit/c820f91/src/Util/PHP/eval-stdin.php - // https://raw.githubusercontent.com/sebastianbergmann/phpunit/3aaddb1/src/Util/PHP/eval-stdin.php + // https://raw.githubusercontent.com/sebastianbergmann/phpunit/c820f915bfae34e5a836f94967a2a5ea5ef34f21/src/Util/PHP/eval-stdin.php + // https://raw.githubusercontent.com/sebastianbergmann/phpunit/3aaddb1c5bd9b9b8d070b4cf120e71c36fd08412/src/Util/PHP/eval-stdin.php + // @codingStandardsIgnoreEnd $md5 = md5_file( $badPhpUnit ); if ( $md5 === '120ac49800671dc383b6f3709c25c099' || $md5 === '28af792cb38fc9a1b236b91c1aad2876' -- To view, visit https://gerrit.wikimedia.org/r/391487 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib47ffed1174628959b9ef537370ff88f8bcb22f1 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_29 Gerrit-Owner: Reedy___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Ignore long git hashes for eval-stdin.php
Reedy has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391485 ) Change subject: Ignore long git hashes for eval-stdin.php .. Ignore long git hashes for eval-stdin.php This reverts commit 5b205725842edbae6ccde5a13baf20c2eb3ec4ae. Change-Id: Ib47ffed1174628959b9ef537370ff88f8bcb22f1 --- M maintenance/update.php 1 file changed, 4 insertions(+), 2 deletions(-) Approvals: Reedy: Verified; Looks good to me, approved diff --git a/maintenance/update.php b/maintenance/update.php index d5c11b5..f8f5dcd 100755 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -172,9 +172,11 @@ $badPhpUnit = dirname( __DIR__ ) . '/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php'; if ( file_exists( $badPhpUnit ) ) { + // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong // Bad versions of the file are: - // https://raw.githubusercontent.com/sebastianbergmann/phpunit/c820f91/src/Util/PHP/eval-stdin.php - // https://raw.githubusercontent.com/sebastianbergmann/phpunit/3aaddb1/src/Util/PHP/eval-stdin.php + // https://raw.githubusercontent.com/sebastianbergmann/phpunit/c820f915bfae34e5a836f94967a2a5ea5ef34f21/src/Util/PHP/eval-stdin.php + // https://raw.githubusercontent.com/sebastianbergmann/phpunit/3aaddb1c5bd9b9b8d070b4cf120e71c36fd08412/src/Util/PHP/eval-stdin.php + // @codingStandardsIgnoreEnd $md5 = md5_file( $badPhpUnit ); if ( $md5 === '120ac49800671dc383b6f3709c25c099' || $md5 === '28af792cb38fc9a1b236b91c1aad2876' -- To view, visit https://gerrit.wikimedia.org/r/391485 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ib47ffed1174628959b9ef537370ff88f8bcb22f1 Gerrit-PatchSet: 3 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: ReedyGerrit-Reviewer: Parent5446 Gerrit-Reviewer: Reedy Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Revert "Shorten git hashes for eval-stdin.php"
Hello Parent5446, jenkins-bot, I'd like you to do a code review. Please visit https://gerrit.wikimedia.org/r/391485 to review the following change. Change subject: Revert "Shorten git hashes for eval-stdin.php" .. Revert "Shorten git hashes for eval-stdin.php" This reverts commit 5b205725842edbae6ccde5a13baf20c2eb3ec4ae. Change-Id: Ib47ffed1174628959b9ef537370ff88f8bcb22f1 --- M maintenance/update.php 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/85/391485/1 diff --git a/maintenance/update.php b/maintenance/update.php index d5c11b5..70cea51 100755 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -173,8 +173,8 @@ $badPhpUnit = dirname( __DIR__ ) . '/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php'; if ( file_exists( $badPhpUnit ) ) { // Bad versions of the file are: - // https://raw.githubusercontent.com/sebastianbergmann/phpunit/c820f91/src/Util/PHP/eval-stdin.php - // https://raw.githubusercontent.com/sebastianbergmann/phpunit/3aaddb1/src/Util/PHP/eval-stdin.php + // https://raw.githubusercontent.com/sebastianbergmann/phpunit/c820f915bfae34e5a836f94967a2a5ea5ef34f21/src/Util/PHP/eval-stdin.php + // https://raw.githubusercontent.com/sebastianbergmann/phpunit/3aaddb1c5bd9b9b8d070b4cf120e71c36fd08412/src/Util/PHP/eval-stdin.php $md5 = md5_file( $badPhpUnit ); if ( $md5 === '120ac49800671dc383b6f3709c25c099' || $md5 === '28af792cb38fc9a1b236b91c1aad2876' -- To view, visit https://gerrit.wikimedia.org/r/391485 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib47ffed1174628959b9ef537370ff88f8bcb22f1 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: ReedyGerrit-Reviewer: Parent5446 Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Fix parser test for language converter
Brian Wolff has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391484 ) Change subject: Fix parser test for language converter .. Fix parser test for language converter Language converter seems to maintain state between parser invocations. Use a more unique string for the test. This is a follow-up to 98b6635895 Bug: T180551 Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c --- M tests/parser/parserTests.txt 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/84/391484/1 diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 4a52c46..b498105 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -16767,9 +16767,9 @@ !! options language=sr variant=sr-el !! wikitext --{H|abc=>sr-el:" onload="alert(1)" data-foo="}- +-{H|foAjrjvi=>sr-el:" onload="alert(1)" data-foo="}- -[[File:Foobar.jpg|alt=-{}-abc-{}-]] +[[File:Foobar.jpg|alt=-{}-foAjrjvi-{}-]] !! html http://example.com/images/3/3a/Foobar.jpg; width="1941" height="220"> -- To view, visit https://gerrit.wikimedia.org/r/391484 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0259b378549f7d9778c27c4bc3efd8d277893f8c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Brian Wolff___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_30]: Fix phpcs issues from LanguageConverter patches
Reedy has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391483 ) Change subject: Fix phpcs issues from LanguageConverter patches .. Fix phpcs issues from LanguageConverter patches Change-Id: I34e57c90ffd40fbd9f8afe3c57dd73fa7f655841 (cherry picked from commit f600b4ede9a6390cc5e929d2a48ed98af2edbc60) --- M languages/LanguageConverter.php M tests/phpunit/languages/LanguageConverterTest.php 2 files changed, 5 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/83/391483/1 diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index f9610fa..8e98abd 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -412,11 +412,11 @@ $log = LoggerFactory::getInstance( 'languageconverter' ); $log->error( "Hit pcre.backtrack_limit in " . __METHOD__ . ". Disabling language conversion for this page.", - array( + [ "method" => __METHOD__, "variant" => $toVariant, "startOfText" => substr( $text, 0, 500 ) - ) + ] ); return $text; } @@ -665,7 +665,9 @@ $noScript = '.*?<\/script>(*SKIP)(*FAIL)'; $noStyle = ' .*?<\/style>(*SKIP)(*FAIL)'; + // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong $noHtml = '<(?:[^>=]*+(?>[^>=]*+=\s*+(?:"[^"]*"|\'[^\']*\'|[^\'">\s]*+))*+[^>=]*+>|.*+)(*SKIP)(*FAIL)'; + // @codingStandardsIgnoreEnd while ( $startPos < $length && $continue ) { $continue = preg_match( // Only match -{ outside of html. diff --git a/tests/phpunit/languages/LanguageConverterTest.php b/tests/phpunit/languages/LanguageConverterTest.php index 331368e..fc2ed33 100644 --- a/tests/phpunit/languages/LanguageConverterTest.php +++ b/tests/phpunit/languages/LanguageConverterTest.php @@ -167,7 +167,7 @@ $testString .= 'xxx xxx xxx'; } $testString .= "\n"; - $old = ini_set('pcre.backtrack_limit', 200 ); + $old = ini_set( 'pcre.backtrack_limit', 200 ); $result = $this->lc->autoConvert( $testString, 'tg-latn' ); ini_set( 'pcre.backtrack_limit', $old ); // The в in the id attribute should not get converted to a v -- To view, visit https://gerrit.wikimedia.org/r/391483 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I34e57c90ffd40fbd9f8afe3c57dd73fa7f655841 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_30 Gerrit-Owner: Reedy ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_30]: Fix phpcs issues from LanguageConverter patches
Reedy has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391483 ) Change subject: Fix phpcs issues from LanguageConverter patches .. Fix phpcs issues from LanguageConverter patches Change-Id: I34e57c90ffd40fbd9f8afe3c57dd73fa7f655841 (cherry picked from commit f600b4ede9a6390cc5e929d2a48ed98af2edbc60) --- M languages/LanguageConverter.php M tests/phpunit/languages/LanguageConverterTest.php 2 files changed, 5 insertions(+), 3 deletions(-) Approvals: Reedy: Verified; Looks good to me, approved diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index f9610fa..8e98abd 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -412,11 +412,11 @@ $log = LoggerFactory::getInstance( 'languageconverter' ); $log->error( "Hit pcre.backtrack_limit in " . __METHOD__ . ". Disabling language conversion for this page.", - array( + [ "method" => __METHOD__, "variant" => $toVariant, "startOfText" => substr( $text, 0, 500 ) - ) + ] ); return $text; } @@ -665,7 +665,9 @@ $noScript = '.*?<\/script>(*SKIP)(*FAIL)'; $noStyle = ' .*?<\/style>(*SKIP)(*FAIL)'; + // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong $noHtml = '<(?:[^>=]*+(?>[^>=]*+=\s*+(?:"[^"]*"|\'[^\']*\'|[^\'">\s]*+))*+[^>=]*+>|.*+)(*SKIP)(*FAIL)'; + // @codingStandardsIgnoreEnd while ( $startPos < $length && $continue ) { $continue = preg_match( // Only match -{ outside of html. diff --git a/tests/phpunit/languages/LanguageConverterTest.php b/tests/phpunit/languages/LanguageConverterTest.php index 331368e..fc2ed33 100644 --- a/tests/phpunit/languages/LanguageConverterTest.php +++ b/tests/phpunit/languages/LanguageConverterTest.php @@ -167,7 +167,7 @@ $testString .= 'xxx xxx xxx'; } $testString .= "\n"; - $old = ini_set('pcre.backtrack_limit', 200 ); + $old = ini_set( 'pcre.backtrack_limit', 200 ); $result = $this->lc->autoConvert( $testString, 'tg-latn' ); ini_set( 'pcre.backtrack_limit', $old ); // The в in the id attribute should not get converted to a v -- To view, visit https://gerrit.wikimedia.org/r/391483 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I34e57c90ffd40fbd9f8afe3c57dd73fa7f655841 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_30 Gerrit-Owner: Reedy Gerrit-Reviewer: Reedy ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_29]: Fix phpcs issues from LanguageConverter patches
Reedy has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391482 ) Change subject: Fix phpcs issues from LanguageConverter patches .. Fix phpcs issues from LanguageConverter patches Change-Id: I34e57c90ffd40fbd9f8afe3c57dd73fa7f655841 (cherry picked from commit f600b4ede9a6390cc5e929d2a48ed98af2edbc60) --- M languages/LanguageConverter.php M tests/phpunit/languages/LanguageConverterTest.php 2 files changed, 5 insertions(+), 3 deletions(-) Approvals: Reedy: Verified; Looks good to me, approved diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 2f175e2..e9a9642 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -418,11 +418,11 @@ $log = LoggerFactory::getInstance( 'languageconverter' ); $log->error( "Hit pcre.backtrack_limit in " . __METHOD__ . ". Disabling language conversion for this page.", - array( + [ "method" => __METHOD__, "variant" => $toVariant, "startOfText" => substr( $text, 0, 500 ) - ) + ] ); return $text; } @@ -671,7 +671,9 @@ $noScript = '.*?<\/script>(*SKIP)(*FAIL)'; $noStyle = ' .*?<\/style>(*SKIP)(*FAIL)'; + // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong $noHtml = '<(?:[^>=]*+(?>[^>=]*+=\s*+(?:"[^"]*"|\'[^\']*\'|[^\'">\s]*+))*+[^>=]*+>|.*+)(*SKIP)(*FAIL)'; + // @codingStandardsIgnoreEnd while ( $startPos < $length && $continue ) { $continue = preg_match( // Only match -{ outside of html. diff --git a/tests/phpunit/languages/LanguageConverterTest.php b/tests/phpunit/languages/LanguageConverterTest.php index 331368e..fc2ed33 100644 --- a/tests/phpunit/languages/LanguageConverterTest.php +++ b/tests/phpunit/languages/LanguageConverterTest.php @@ -167,7 +167,7 @@ $testString .= 'xxx xxx xxx'; } $testString .= "\n"; - $old = ini_set('pcre.backtrack_limit', 200 ); + $old = ini_set( 'pcre.backtrack_limit', 200 ); $result = $this->lc->autoConvert( $testString, 'tg-latn' ); ini_set( 'pcre.backtrack_limit', $old ); // The в in the id attribute should not get converted to a v -- To view, visit https://gerrit.wikimedia.org/r/391482 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I34e57c90ffd40fbd9f8afe3c57dd73fa7f655841 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_29 Gerrit-Owner: Reedy Gerrit-Reviewer: Reedy ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_27]: Fix phpcs issues from LanguageConverter patches
Reedy has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391481 ) Change subject: Fix phpcs issues from LanguageConverter patches .. Fix phpcs issues from LanguageConverter patches Change-Id: I34e57c90ffd40fbd9f8afe3c57dd73fa7f655841 (cherry picked from commit f600b4ede9a6390cc5e929d2a48ed98af2edbc60) --- M languages/LanguageConverter.php M tests/phpunit/languages/LanguageConverterTest.php 2 files changed, 5 insertions(+), 3 deletions(-) Approvals: Reedy: Verified; Looks good to me, approved diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 87eb80d..28c75e1 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -412,11 +412,11 @@ $log = LoggerFactory::getInstance( 'languageconverter' ); $log->error( "Hit pcre.backtrack_limit in " . __METHOD__ . ". Disabling language conversion for this page.", - array( + [ "method" => __METHOD__, "variant" => $toVariant, "startOfText" => substr( $text, 0, 500 ) - ) + ] ); return $text; } @@ -667,7 +667,9 @@ $noScript = '.*?<\/script>(*SKIP)(*FAIL)'; $noStyle = ' .*?<\/style>(*SKIP)(*FAIL)'; + // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong $noHtml = '<(?:[^>=]*+(?>[^>=]*+=\s*+(?:"[^"]*"|\'[^\']*\'|[^\'">\s]*+))*+[^>=]*+>|.*+)(*SKIP)(*FAIL)'; + // @codingStandardsIgnoreEnd while ( $startPos < $length && $continue ) { $continue = preg_match( // Only match -{ outside of html. diff --git a/tests/phpunit/languages/LanguageConverterTest.php b/tests/phpunit/languages/LanguageConverterTest.php index 331368e..fc2ed33 100644 --- a/tests/phpunit/languages/LanguageConverterTest.php +++ b/tests/phpunit/languages/LanguageConverterTest.php @@ -167,7 +167,7 @@ $testString .= 'xxx xxx xxx'; } $testString .= "\n"; - $old = ini_set('pcre.backtrack_limit', 200 ); + $old = ini_set( 'pcre.backtrack_limit', 200 ); $result = $this->lc->autoConvert( $testString, 'tg-latn' ); ini_set( 'pcre.backtrack_limit', $old ); // The в in the id attribute should not get converted to a v -- To view, visit https://gerrit.wikimedia.org/r/391481 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I34e57c90ffd40fbd9f8afe3c57dd73fa7f655841 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_27 Gerrit-Owner: Reedy Gerrit-Reviewer: Reedy ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_29]: Fix phpcs issues from LanguageConverter patches
Reedy has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391482 ) Change subject: Fix phpcs issues from LanguageConverter patches .. Fix phpcs issues from LanguageConverter patches Change-Id: I34e57c90ffd40fbd9f8afe3c57dd73fa7f655841 (cherry picked from commit f600b4ede9a6390cc5e929d2a48ed98af2edbc60) --- M languages/LanguageConverter.php M tests/phpunit/languages/LanguageConverterTest.php 2 files changed, 5 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/82/391482/1 diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 2f175e2..e9a9642 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -418,11 +418,11 @@ $log = LoggerFactory::getInstance( 'languageconverter' ); $log->error( "Hit pcre.backtrack_limit in " . __METHOD__ . ". Disabling language conversion for this page.", - array( + [ "method" => __METHOD__, "variant" => $toVariant, "startOfText" => substr( $text, 0, 500 ) - ) + ] ); return $text; } @@ -671,7 +671,9 @@ $noScript = '.*?<\/script>(*SKIP)(*FAIL)'; $noStyle = ' .*?<\/style>(*SKIP)(*FAIL)'; + // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong $noHtml = '<(?:[^>=]*+(?>[^>=]*+=\s*+(?:"[^"]*"|\'[^\']*\'|[^\'">\s]*+))*+[^>=]*+>|.*+)(*SKIP)(*FAIL)'; + // @codingStandardsIgnoreEnd while ( $startPos < $length && $continue ) { $continue = preg_match( // Only match -{ outside of html. diff --git a/tests/phpunit/languages/LanguageConverterTest.php b/tests/phpunit/languages/LanguageConverterTest.php index 331368e..fc2ed33 100644 --- a/tests/phpunit/languages/LanguageConverterTest.php +++ b/tests/phpunit/languages/LanguageConverterTest.php @@ -167,7 +167,7 @@ $testString .= 'xxx xxx xxx'; } $testString .= "\n"; - $old = ini_set('pcre.backtrack_limit', 200 ); + $old = ini_set( 'pcre.backtrack_limit', 200 ); $result = $this->lc->autoConvert( $testString, 'tg-latn' ); ini_set( 'pcre.backtrack_limit', $old ); // The в in the id attribute should not get converted to a v -- To view, visit https://gerrit.wikimedia.org/r/391482 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I34e57c90ffd40fbd9f8afe3c57dd73fa7f655841 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_29 Gerrit-Owner: Reedy ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_27]: Fix phpcs issues from LanguageConverter patches
Reedy has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391481 ) Change subject: Fix phpcs issues from LanguageConverter patches .. Fix phpcs issues from LanguageConverter patches Change-Id: I34e57c90ffd40fbd9f8afe3c57dd73fa7f655841 (cherry picked from commit f600b4ede9a6390cc5e929d2a48ed98af2edbc60) --- M languages/LanguageConverter.php M tests/phpunit/languages/LanguageConverterTest.php 2 files changed, 5 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/81/391481/1 diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 87eb80d..28c75e1 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -412,11 +412,11 @@ $log = LoggerFactory::getInstance( 'languageconverter' ); $log->error( "Hit pcre.backtrack_limit in " . __METHOD__ . ". Disabling language conversion for this page.", - array( + [ "method" => __METHOD__, "variant" => $toVariant, "startOfText" => substr( $text, 0, 500 ) - ) + ] ); return $text; } @@ -667,7 +667,9 @@ $noScript = '.*?<\/script>(*SKIP)(*FAIL)'; $noStyle = ' .*?<\/style>(*SKIP)(*FAIL)'; + // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong $noHtml = '<(?:[^>=]*+(?>[^>=]*+=\s*+(?:"[^"]*"|\'[^\']*\'|[^\'">\s]*+))*+[^>=]*+>|.*+)(*SKIP)(*FAIL)'; + // @codingStandardsIgnoreEnd while ( $startPos < $length && $continue ) { $continue = preg_match( // Only match -{ outside of html. diff --git a/tests/phpunit/languages/LanguageConverterTest.php b/tests/phpunit/languages/LanguageConverterTest.php index 331368e..fc2ed33 100644 --- a/tests/phpunit/languages/LanguageConverterTest.php +++ b/tests/phpunit/languages/LanguageConverterTest.php @@ -167,7 +167,7 @@ $testString .= 'xxx xxx xxx'; } $testString .= "\n"; - $old = ini_set('pcre.backtrack_limit', 200 ); + $old = ini_set( 'pcre.backtrack_limit', 200 ); $result = $this->lc->autoConvert( $testString, 'tg-latn' ); ini_set( 'pcre.backtrack_limit', $old ); // The в in the id attribute should not get converted to a v -- To view, visit https://gerrit.wikimedia.org/r/391481 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I34e57c90ffd40fbd9f8afe3c57dd73fa7f655841 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_27 Gerrit-Owner: Reedy ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Fix phpcs issues from LanguageConverter patches
Reedy has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391480 ) Change subject: Fix phpcs issues from LanguageConverter patches .. Fix phpcs issues from LanguageConverter patches Change-Id: I34e57c90ffd40fbd9f8afe3c57dd73fa7f655841 --- M languages/LanguageConverter.php M tests/phpunit/languages/LanguageConverterTest.php 2 files changed, 5 insertions(+), 3 deletions(-) Approvals: Reedy: Verified; Looks good to me, approved diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index f9610fa..8e98abd 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -412,11 +412,11 @@ $log = LoggerFactory::getInstance( 'languageconverter' ); $log->error( "Hit pcre.backtrack_limit in " . __METHOD__ . ". Disabling language conversion for this page.", - array( + [ "method" => __METHOD__, "variant" => $toVariant, "startOfText" => substr( $text, 0, 500 ) - ) + ] ); return $text; } @@ -665,7 +665,9 @@ $noScript = '.*?<\/script>(*SKIP)(*FAIL)'; $noStyle = ' .*?<\/style>(*SKIP)(*FAIL)'; + // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong $noHtml = '<(?:[^>=]*+(?>[^>=]*+=\s*+(?:"[^"]*"|\'[^\']*\'|[^\'">\s]*+))*+[^>=]*+>|.*+)(*SKIP)(*FAIL)'; + // @codingStandardsIgnoreEnd while ( $startPos < $length && $continue ) { $continue = preg_match( // Only match -{ outside of html. diff --git a/tests/phpunit/languages/LanguageConverterTest.php b/tests/phpunit/languages/LanguageConverterTest.php index 331368e..fc2ed33 100644 --- a/tests/phpunit/languages/LanguageConverterTest.php +++ b/tests/phpunit/languages/LanguageConverterTest.php @@ -167,7 +167,7 @@ $testString .= 'xxx xxx xxx'; } $testString .= "\n"; - $old = ini_set('pcre.backtrack_limit', 200 ); + $old = ini_set( 'pcre.backtrack_limit', 200 ); $result = $this->lc->autoConvert( $testString, 'tg-latn' ); ini_set( 'pcre.backtrack_limit', $old ); // The в in the id attribute should not get converted to a v -- To view, visit https://gerrit.wikimedia.org/r/391480 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I34e57c90ffd40fbd9f8afe3c57dd73fa7f655841 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Reedy Gerrit-Reviewer: Reedy ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[master]: SECURITY: Handle -{}- syntax in attributes safely
Reedy has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391455 ) Change subject: SECURITY: Handle -{}- syntax in attributes safely .. SECURITY: Handle -{}- syntax in attributes safely Previously, if one had an attribute with the contents "-{}-foo-{}-", foo would get replaced by language converter as if it wasn't in an attribute. This lead to an XSS attack. This breaks doing manual conversions in url href's (or any other attribute that goes through an escaping method other than Sanitizer's). e.g. http://{sr-el:foo';sr-ec:bar}.com won't work anymore. See also T87332 Bug: T119158 Change-Id: Idbc45cac12c309b0ccb4adeff6474fa527b48edb --- M languages/LanguageConverter.php M tests/parser/parserTests.txt 2 files changed, 39 insertions(+), 10 deletions(-) Approvals: Reedy: Verified; Looks good to me, approved diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 00bc02d..f9610fa 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -376,9 +376,12 @@ $scriptfix = '