"Illegal ID" preceding HTML of inexistant file-IDs

already fixed bugs

Moderator: AniDB

Locked
wahaha
AniDB Staff
Posts: 1497
Joined: Sun Nov 17, 2002 3:33 pm

"Illegal ID" preceding HTML of inexistant file-IDs

Post by wahaha »

Example: http://anidb.ath.cx/perl-bin/animedb.pl ... &fid=99999

Depending on the browser, it'll display the page as text/plain (firefox) or put the "Illegal ID" at the beginning of the page (IE).
hhaamu
Posts: 84
Joined: Mon Feb 07, 2005 7:59 am

Post by hhaamu »

Probably related to the same bug:
http://anidb.info/perl-bin/animedb.pl?show=file&fid=F1
http://anidb.info/perl-bin/animedb.pl?s ... me&aid=5,1
http://anidb.info/perl-bin/animedb.pl?s ... up&gid=1af
http://anidb.info/perl-bin/animedb.pl?s ... r&prid=-42

if fid/aid/gid/prid (others?) contain a non-numeric character, server outputs content as text/plain:

Normal output:
1 HTTP/1.1 200 OK
2 Date: Sun, 08 May 2005 10:52:45 GMT
3 Server: Apache/1.3.33 (Unix) mod_perl/1.29
4 Cache-control: no-cache
5 Pragma: no-cache
6 Content-Type: text/html
7 Expires: Sun, 08 May 2005 10:52:45 GMT
8 X-Cache: MISS from anidb.info
9 Keep-Alive: timeout=10, max=100
10 Connection: Keep-Alive
Buggy output:
1 HTTP/1.1 200 OK
2 Date: Sun, 08 May 2005 10:54:09 GMT
3 Server: Apache/1.3.33 (Unix) mod_perl/1.29
4 Content-Type: text/plain
5 X-Cache: MISS from anidb.info
6 Connection: close
Locked