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

Audio text is different from image text #115

Closed adakaleh closed 2 years ago

adakaleh commented 3 years ago

In both Image+Audio and SVG+Audio, the audio text is completely different from the image text. The audio text is considered incorrect. Only the text in the image works.

demiankatz commented 2 years ago

I am seeing this problem after upgrading to "Igor" in my test environment. When I revert to "Hogfather," the problem goes away. Has anyone made any progress investigating what is going on here?

demiankatz commented 2 years ago

Thanks, @splitbrain!

adakaleh commented 2 years ago

Quoting the commit message:

It seems browsers pass different accept-encoding headers now for the audio request, breaking auth_browseruid()

Ok, so it's my fault for adding Accept-Encoding to auth_browseruid(). We should remove it, as it may have also broken other things. PR coming soon.

I thought browsers send the same Accept-Encoding header for all requests, but I was wrong. Here is why Firefox disables Accept-Encoding for embedded media:

The embedded media in this case is the <audio> element added here.