summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-06-11 14:38:04 +0200
committerandi <andi@splitbrain.org>2005-06-11 14:38:04 +0200
commit38fd6cba3cd3a9a30ebc90886fc10c7e00fb8aa0 (patch)
tree19cb1b44de1897ae1af2ee7d845ee8cab0db20e9 /lib
parenta08eb37aafd19cb62b1d58d188547fb14b27fbb8 (diff)
downloadrpg-38fd6cba3cd3a9a30ebc90886fc10c7e00fb8aa0.tar.gz
rpg-38fd6cba3cd3a9a30ebc90886fc10c7e00fb8aa0.tar.bz2
small spellchecker fix for suggestions with spaces or singlequotes
darcs-hash:20050611123804-9977f-8ecc877cfdebb542e797562987322db4df7bcf49.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/exe/spellcheck.php5
1 files changed, 2 insertions, 3 deletions
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 = '';
}