Yaron Koren has submitted this change and it was merged.
Change subject: Fix for HTML-encoded values, like an apostrophe, in query string
......................................................................
Fix for HTML-encoded values, like an apostrophe, in query string
Change-Id: I4a5e89ba6fd947ff738811d6f9cd494879cf128d
---
M includes/SF_ParserFunctions.php
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
Yaron Koren: Verified; Looks good to me, approved
diff --git a/includes/SF_ParserFunctions.php b/includes/SF_ParserFunctions.php
index 7064802..96d404a 100644
--- a/includes/SF_ParserFunctions.php
+++ b/includes/SF_ParserFunctions.php
@@ -228,6 +228,8 @@
// URL-encoded ampersands, so that the string
// doesn't get split up on the '&'.
$inQueryStr = str_replace( '&', '%26',
$value );
+ // "Decode" any other HTML tags.
+ $inQueryStr = html_entity_decode( $inQueryStr,
ENT_QUOTES );
parse_str($inQueryStr, $arr);
$inQueryArr =
SFUtils::array_merge_recursive_distinct( $inQueryArr, $arr );
--
To view, visit https://gerrit.wikimedia.org/r/58535
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4a5e89ba6fd947ff738811d6f9cd494879cf128d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticForms
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <[email protected]>
Gerrit-Reviewer: Yaron Koren <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits