Skip to content

Commit

Permalink
Merge pull request #25 from Wikia/PLATFORM-9297
Browse files Browse the repository at this point in the history
PLATFORM-9297 | Don't double-escape single quotes in Cargo results
  • Loading branch information
wladekb authored May 9, 2024
2 parents 2a81e48 + 18ce9c5 commit c95a765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/CargoSQLQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -1616,7 +1616,7 @@ public function run() {
// It's a string.
// Escape any HTML, to avoid JavaScript
// injections and the like.
$resultsRow[$alias] = htmlspecialchars( $curValue );
$resultsRow[$alias] = htmlspecialchars( $curValue, ENT_COMPAT );
}
}
$resultArray[] = $resultsRow;
Expand Down

0 comments on commit c95a765

Please sign in to comment.