splitbrain / dokuwiki-plugin-captcha

Use a CAPTCHA challenge to protect DokuWiki against automated spam
http://www.dokuwiki.org/plugin:captcha
GNU General Public License v2.0
11 stars 12 forks source link

Warning: Undefined array key "REMOTE_USER" in /..../lib/plugins/captcha/action.php on line 197 #131

Closed JoBongHyeon closed 2 years ago

JoBongHyeon commented 2 years ago

Warning: Undefined array key "REMOTE_USER" in /..../lib/plugins/captcha/action.php on line 197

https://github.com/splitbrain/dokuwiki/issues/3753#issuecomment-1226776398

if (!$this->getConf('forusers') &&$_SERVER['REMOTE_USER'] ) {

-> if (!$this->getConf('forusers') && array_key_exists('REMOTE_USER', $_SERVER) && !empty($_SERVER['REMOTE_USER'])) {