PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Bug Tracker

Reply
 
Thread Tools
Old 07-07-2006, 02:08 AM   #1
c4x
Green Mole
 
Join Date: Mar 2004
Location: 101110001010101
Posts: 3
PDF/X-PDF "Bug" in 1.8.9 and below

Hello!

There is some bug with different Content-Types in the server response for PDF files.

One of our servers is responding with "Content-type: application/x-pdf". (See below).
The PhpDig search allows only application/pdf. And only if this header is found the PDF gets parsed.

The x-pdf is nothing different and just some IE fix... try google



Maybe anyone should rewrite the line 510 (v1.8.8) of the robot_functions.php:

Change:
PHP Code:
else if ($regs[2] == 'pdf' && PHPDIG_INDEX_PDF == true) { 
To:
PHP Code:
else if (($regs[2] == 'pdf' || $regs[2] == 'x-pdf') && PHPDIG_INDEX_PDF == true) { 
And everything will work fine for both response types of the server



Here is the sample response of our Apache server:

Quote:
Status Code: 200
Date: Fri, 07 Jul 2006 08:22:09 GMT
Server: Apache/2.0.46 (Red Hat)
Last-modified: Thu, 06 Jul 2006 10:40:59 GMT
Etag: "12b081e-a3044-622f64c0"
Accept-ranges: bytes
Content-length: 667716
Connection: close
Content-type: application/x-pdf


Greetings, MR
c4x is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
search.php suddenly stops parsing during "extract vars" jackmoring Troubleshooting 1 08-25-2006 12:27 PM
shows blank page if "Search All" and "exact phrase", timeout? alokjain9 Troubleshooting 2 03-07-2006 08:08 AM
"search depth" and "links per" features laurentxav How-to Forum 1 01-12-2005 08:27 PM
Bug in the "refine" feature laurentxav Mod Submissions 1 03-01-2004 09:32 AM


All times are GMT -8. The time now is 05:32 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.