Fixed cosmetic bug in the tool to test queries (issue with double quote in the queries)

SVN:trunk[1798]
This commit is contained in:
Romain Quetiez
2012-01-23 08:34:17 +00:00
parent e90e35dbc6
commit 104959f9ff

View File

@@ -206,7 +206,7 @@ try
$sFixedExpression = $sBefore.$sSuggestedWord.$sAfter;
$sFixedExpressionHtml = $sBefore.'<span style="background-color:yellow">'.$sSuggestedWord.'</span>'.$sAfter;
$oP->p("Suggesting: $sFixedExpressionHtml");
$oP->add('<button onClick="$(\'textarea[name=expression]\').val(\''.addslashes($sFixedExpression).'\');">Use this query</button>');
$oP->add('<button onClick="$(\'textarea[name=expression]\').val(\''.htmlentities(addslashes($sFixedExpression)).'\');">Use this query</button>');
}
else
{