PDA

View Full Version : PhpDig Version 1.8.4 Released


Charter
12-06-2004, 01:45 AM
Hi. PhpDig version 1.8.4 has been released as a 'minor+' release. The changes can be found in the Changelog (http://www.phpdig.net/info/changelog.txt) file. There are five database table changes. To upgrade, make the changes to the database tables, reconfigure the new connect.php and config.php files, and copy over all of the files, overwriting the old files.

Charter
12-08-2004, 03:36 PM
If you downloaded PhpDig 1.8.4 prior to the date of this post, the attached file contains some minor changes that you should make. The most pertinent change deals with the textbox and how URLs entered are read. Initially PhpDig 1.8.4 exploded textbox links on "http" (without the quotes) but this may cause a problem if you try to crawl a link such as http://www.http-in-domain-name.com so the attached file takes care of this. If you downloaded PhpDig 1.8.4 after the date of this post, the changes in the attached file have already been made.

Charter
12-10-2004, 01:57 PM
If you downloaded PhpDig 1.8.4 prior to the date of this post, make the following change or else you may receive a "cannot unset string offsets" fatal error:

In robot_functions.php find:

unset($links[$index]);
unset($http_scheme_array[$index]);

And replace with:

if (isset($links[$index])) { unset($links[$index]); }
if (isset($http_scheme_array[$index])) { unset($http_scheme_array[$index]); }

If you downloaded PhpDig 1.8.4 after the date of this post, the change has already been made.

Charter
12-11-2004, 10:14 AM
It is imperative that you make the following change ASAP! In fact, take PhpDig down until you hear the all clear, and change your passwords now. Make sure you have new passwords at once, and do not use PhpDig until you get the all clear. The problem can affect multiple versions of PhpDig.

In search.php find:

extract(phpdigHttpVars(
array('query_string'=>'string',
'refine'=>'integer',
'refine_url'=>'string',
'site'=>'string', // set to integer later
'limite'=>'integer',
'option'=>'string',
'lim_start'=>'integer',
'browse'=>'integer',
'path'=>'string'
)
));

And replace with:

extract(phpdigHttpVars(
array('query_string'=>'string',
'refine'=>'integer',
'refine_url'=>'string',
'site'=>'string', // set to integer later
'limite'=>'integer',
'option'=>'string',
'lim_start'=>'integer',
'browse'=>'integer',
'path'=>'string'
)
),EXTR_SKIP);

Also, make sure to watch this thread (http://www.phpdig.net/forum/showthread.php?t=1573) for the next couple of days, as more posts may be coming. In the meantime, it would be a good idea to find every extract in the code and add the EXTR_SKIP option to the end. PhpDig will not be available for download until this problem is fixed.

Argh..........

Charter
12-12-2004, 01:43 AM
Note: PhpDig v.1.8.5 contains the code changes posted in this thread plus some other changes. You must upgrade if you use a version of PhpDig earlier than v.1.8.5. Read this (http://www.phpdig.net/forum/showthread.php?t=1608) thread for information about PhpDig v.1.8.5.