Captcha not displaying with Safari
Anonymous — Fri, 17/08/2007 - 16:15
Hi,
thanks for a great module. I have installed mycaptcha and its working great with IE and Firefox, but with Safari the image is not showing up. I am wondering if there is any reason for this. I've checked the mycap_image function code, and the image is set to render as a jpeg--I've tried 'moving' the drupal_set_header function above the imagejpeg call as suggested by some notes on php.net with no luck. I've also checked mime-types in my Apache config and all looks right. Any help you could provide is greatly appreciated.
Thanks much!
Weird.
Heine — Thu, 23/08/2007 - 14:16I've tested this with Safari 3 (the windows alpha) where it works fine. I do not have access to Safari on the Mac, unfortunately. Do you see the image when posting here with Safari? Is Safari configured to fetch images? (perhaps a silly suggestion, but Opera has such a feature).
Thanks for the quick
Anonymous (not verified) — Mon, 27/08/2007 - 15:04Thanks for the quick response. Since I was able to see the captcha on your site without problem using my Mac Safari, I did a bit more digging. The only difference I can see in the source code between your site and mine, is that the image src tag also includes a width and height parameter (a default I have set in our stylesheet). I checked the cache_captcha table blobs and when accessing my captcha page via FireFox (or IE), the BLOB data properly creates the image (about 12KB) and stores it in the db, while the Safari page generates a faulty BLOB (just 218 bytes-- header only--no image)--which is why I am getting a broken image link on the Safari page. Any ideas why this would be happening? I'll go through the module code once more and try to debug.
I appreciate your help! :) THANKS AGAIN.
All the best
Nothing concrete yet, though
Heine — Mon, 24/09/2007 - 01:47Nothing concrete yet, though I wonder if this is related to a session handling race condition.
Post new comment