From 38fd6cba3cd3a9a30ebc90886fc10c7e00fb8aa0 Mon Sep 17 00:00:00 2001 From: andi Date: Sat, 11 Jun 2005 14:38:04 +0200 Subject: small spellchecker fix for suggestions with spaces or singlequotes darcs-hash:20050611123804-9977f-8ecc877cfdebb542e797562987322db4df7bcf49.gz --- lib/exe/spellcheck.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/exe') diff --git a/lib/exe/spellcheck.php b/lib/exe/spellcheck.php index 497e863a7..d8faa0291 100644 --- a/lib/exe/spellcheck.php +++ b/lib/exe/spellcheck.php @@ -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 = ''; } -- cgit v1.2.3