From 14338d298abfa41965a102c9e4451a6d28b9e27c Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 17 Mar 2006 21:36:43 +0100 Subject: fixes spellchecker problem with apostrophe in links #753 darcs-hash:20060317203643-7ad00-9968464c2d9c41b1d99a6b16f415082f79af7a8d.gz --- lib/exe/spellcheck.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/exe/spellcheck.php b/lib/exe/spellcheck.php index bc0209719..5b4c44eda 100644 --- a/lib/exe/spellcheck.php +++ b/lib/exe/spellcheck.php @@ -51,6 +51,7 @@ require_once (DOKU_INC.'inc/init.php'); session_write_close(); require_once (DOKU_INC.'inc/utf8.php'); require_once (DOKU_INC.'inc/aspell.php'); +require_once (DOKU_INC.'inc/common.php'); header('Content-Type: text/plain; charset=utf-8'); @@ -83,6 +84,8 @@ if(function_exists($call)){ * @author Andreas Gohr */ function spaceslink($string, $check=""){ + $string = unslash($string); + $check = unslash($check); $result = ' '; //opening [[ $result .= str_pad('',utf8_strlen($string),' '); $result .= $check; -- cgit v1.2.3