Debian Jessie: not so oldstable…

Dokuwiki media uploads failing?

Edit your /usr/share/dokuwiki/inc/Input.class.php with the following pasted under the __construct function (note WordPress “code” stripped the leading spaces :/):

 


 

/**
* Return a filtered copy of the input object
*
* Expects a callable that accepts one string parameter and  returns a filtered string
*
* @param Callable|string $filter
* @return Input
*/
public function filter($filter='stripctl'){
$this->filter = $filter;
$clone = clone $this;
$this->filter = '';
return $clone;
}

 


 

References:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903948

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=908653

https://www.turnkeylinux.org/forum/support/thu-20181004-1916/php-fatal-error-call-undefined-method-postinputfilter

https://github.com/splitbrain/dokuwiki/blob/master/inc/Input.class.php

No Responses

Note that comments are displayed in reverse chronological order with topmost comments being freshest. Subscribe | Comment

Leave a Reply