Daniel Kinzler has uploaded a new change for review.
https://gerrit.wikimedia.org/r/233766
Change subject: Fix html escpaing for quantity formatter.
......................................................................
Fix html escpaing for quantity formatter.
NOTE: this is redundant once we go back to using the plain text formatter
as an automated fallabck for html, as implied by T110183.
Change-Id: I7031b1001773fa0e801a59f59c91198b69658087
---
M lib/includes/formatters/WikibaseValueFormatterBuilders.php
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase
refs/changes/66/233766/1
diff --git a/lib/includes/formatters/WikibaseValueFormatterBuilders.php
b/lib/includes/formatters/WikibaseValueFormatterBuilders.php
index 515d6b8..36dfa2a 100644
--- a/lib/includes/formatters/WikibaseValueFormatterBuilders.php
+++ b/lib/includes/formatters/WikibaseValueFormatterBuilders.php
@@ -629,7 +629,8 @@
$decimalFormatter = new DecimalFormatter( $options,
$this->getNumberLocalizer( $options ) );
$labelDescriptionLookup =
$this->labelDescriptionLookupFactory->getLabelDescriptionLookup( $options );
$unitFormatter = new EntityLabelUnitFormatter(
$this->repoUriParser, $labelDescriptionLookup );
- return new QuantityFormatter( $decimalFormatter,
$unitFormatter, $options );
+ $quantityFormatter = new QuantityFormatter( $decimalFormatter,
$unitFormatter, $options );
+ return new EscapingValueFormatter( $quantityFormatter,
'htmlspecialchars' );
}
/**
--
To view, visit https://gerrit.wikimedia.org/r/233766
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7031b1001773fa0e801a59f59c91198b69658087
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Daniel Kinzler <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits