Skip to content
Snippets Groups Projects
Commit 38fd6cba authored by andi's avatar andi
Browse files

small spellchecker fix for suggestions with spaces or singlequotes

darcs-hash:20050611123804-9977f-8ecc877cfdebb542e797562987322db4df7bcf49.gz
parent a08eb37a
No related branches found
No related tags found
No related merge requests found
......@@ -196,10 +196,9 @@ function spell_formatword($word,$suggestions=null){
//konqueror's broken UTF-8 handling needs this
$suggestions = array_map('utf8_tohtml',$suggestions);
$suggestions = array_map('urlencode',$suggestions);
$suggestions = array_map('addslashes',$suggestions);
$sug = ",'".join("','",$suggestions)."'"; //build javascript args
$sug = ",'".join("','",$suggestions)."'"; // build javascript args
}else{
$sug = '';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment