Skip to content

Commit 407edce

Browse files
committed
N°9234 - Sanitize query expression parameter in suggested OQL on run query page
1 parent fc967c0 commit 407edce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/run_query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ function ShowExamples($oP, $sExpression)
306306
$sBefore = substr($sExpression, 0, $e->GetColumn());
307307
$sAfter = substr($sExpression, $e->GetColumn() + strlen($sWrongWord));
308308
$sFixedExpression = $sBefore.$sSuggestedWord.$sAfter;
309-
$sFixedExpressionHtml = $sBefore.'<span class="ibo-run-query--highlight">'.$sSuggestedWord.'</span>'.$sAfter;
309+
$sFixedExpressionHtml = $sBefore.'<span class="ibo-run-query--highlight">'.$sSuggestedWord.'</span>'.utils::EscapeHtml($sAfter);
310310
$sSyntaxErrorText .= "<p>Suggesting: $sFixedExpressionHtml</p>";
311311
$oSyntaxErrorPanel->AddSubBlock(new Html($sSyntaxErrorText));
312312

0 commit comments

Comments
 (0)