Jeroen De Dauw has submitted this change and it was merged.

Change subject: Fix Special:Ask htmlspecialchars line 465
......................................................................


Fix Special:Ask htmlspecialchars line 465

Special:Ask returns with a message htmlspecialchars() expects
parameter 1 to be string, array given. This is caused by line 465 where
$param->getValue() (IParam) returns with an array and not with a string.

In case of param sorting, values are returned as array and not as string
which causes htmlspecialchars to go south.

Tried to use  ->getOriginalValue() but it did not brougth any results
back therefor we stick with $param->getValue() to fetch the values

Change-Id: Ibc94b1471bb52745924310afdc2c65c39a0b8ebe
---
M specials/AskSpecial/SMW_SpecialAsk.php
1 file changed, 5 insertions(+), 2 deletions(-)

Approvals:
  Jeroen De Dauw: Verified; Looks good to me, approved


--
To view, visit https://gerrit.wikimedia.org/r/16215
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibc94b1471bb52745924310afdc2c65c39a0b8ebe
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/SemanticMediaWiki
Gerrit-Branch: master
Gerrit-Owner: Mwjames <[email protected]>
Gerrit-Reviewer: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: Mwjames <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to