4 * DokuWiki AJAX call handler
6 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
7 * @author Andreas Gohr <andi@splitbrain.org>
10 use dokuwiki\Utf8\Clean
;
13 if (!defined('DOKU_INC')) define('DOKU_INC', __DIR__
. '/../../');
14 require_once(DOKU_INC
. 'inc/init.php');
17 session_write_close();
19 // default header, ajax call may overwrite it later
20 header('Content-Type: text/html; charset=utf-8');
22 //call the requested function
24 if ($INPUT->has('call')) {
25 $call = $INPUT->filter([Clean
::class, 'stripspecials'])->str('call');