From 95657bc6773c23c04843d51d5224df0bbd5191f0 Mon Sep 17 00:00:00 2001 From: andi Date: Wed, 8 Jun 2005 20:27:58 +0200 Subject: Spellchecker fixes The spellchecker now works in IE6, Firefox and Opera 8 :-) SACK was updated to the latest release (plus a minor fix) Proper UTF-8 headers were added to the AJAX PHP backends darcs-hash:20050608182758-9977f-1eacd0ba9993a62f094433d982f668e38d17ba14.gz --- lib/exe/ajax.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/exe/ajax.php') diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php index 02911b858..c75bce52d 100644 --- a/lib/exe/ajax.php +++ b/lib/exe/ajax.php @@ -17,12 +17,15 @@ require_once(DOKU_INC.'inc/common.php'); require_once(DOKU_INC.'inc/pageutils.php'); require_once(DOKU_INC.'inc/auth.php'); +header('Content-Type: text/html; charset=utf-8'); + + //call the requested function $call = 'ajax_'.$_POST['call']; if(function_exists($call)){ $call(); }else{ - print "The called function does not exist!"; + print "The called function '".htmlspecialchars($call)."' does not exist!"; } /** -- cgit v1.2.3