diff --git a/pages/UI.php b/pages/UI.php index b88039c9a..39676493b 100644 --- a/pages/UI.php +++ b/pages/UI.php @@ -674,7 +674,7 @@ try else { $oP->set_title(Dict::S('UI:SearchResultsPageTitle')); - $oP->p("

".Dict::Format('UI:FullTextSearchTitle_Text', $sFullText)."

"); + $oP->p("

".Dict::Format('UI:FullTextSearchTitle_Text', htmlentities($sFullText, ENT_QUOTES, 'UTF-8'))."

"); $iCount = 0; $iBlock = 0; // Search in full text mode in all the classes diff --git a/pages/run_query.php b/pages/run_query.php index e52edcc1c..a1d3bfc9f 100644 --- a/pages/run_query.php +++ b/pages/run_query.php @@ -160,7 +160,7 @@ try $oP->add("
\n"); $oP->add(Dict::S('UI:RunQuery:ExpressionToEvaluate')."
\n"); - $oP->add("\n"); + $oP->add("\n"); if (count($aArgs) > 0) { @@ -186,7 +186,7 @@ try $oP->p(''); $oP->StartCollapsibleSection(Dict::S('UI:RunQuery:MoreInfo'), false); - $oP->p(Dict::S('UI:RunQuery:DevelopedQuery').$oFilter->ToOQL()); + $oP->p(Dict::S('UI:RunQuery:DevelopedQuery').htmlentities($oFilter->ToOQL(), ENT_QUOTES, 'UTF-8')); $oP->p(Dict::S('UI:RunQuery:SerializedFilter').$oFilter->serialize()); $oP->EndCollapsibleSection(); }