Go back to previous page
Forum URL: http://www.eyrie-productions.com/Forum/dcboard.cgi
Forum Name: Annotations
Topic ID: 44
Message ID: 17
#17, RE: S4M1: Page of Swords
Posted by Gryphon on Nov-30-08 at 04:30 PM
In response to message #16
LAST EDITED ON Nov-30-08 AT 04:32 PM (EST)
 
>>Ah, is that how you link to images? I knew we had to do something to
>>not make the image inline, but I forgot what. Thanks!
>>
>The big thing is adding that ?x at the end of it, it fools the board
>encoding into just parsing it as a straight up link instead of trying
>to inline the image.

The question mark tells httpd, "What I'm calling here is a CGI script, and what's after the ? is the argument you are to pass to it." On many servers (including this one), if you do that on the URL of something that isn't a CGI script, httpd will just discard the argument and give you whatever the file is. It fools DCForum because (I believe) DCF uses a simplistic parser that looks for filename extensions to determine what is and isn't an image, and it doesn't recognise "jpg?x" as a valid image file format. The fake argument (x) could be anything; since the file being called isn't a CGI script, apache will just ignore it.

http://www.eyrie-productions.com/UF/FI/SOS/GFX/pm-dueling-arena.jpg?maryhadalittlelambitsfleecewaswhiteassnow

--G.
-><-
Benjamin D. Hutchins, Co-Founder, Editor-in-Chief, & Forum Admin
Eyrie Productions, Unlimited http://www.eyrie-productions.com/
Ceterum censeo Carthaginem esse delendam.