bugphpGroupWare - Bugs: bug #8583, Export Contacts in Adressbook not...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #8583: Export Contacts in Adressbook not functioning if register_globals = OFF in php.ini

Submitter:  Alan Oshry <scibe>
Submitted:  Thu 15 Apr 2004 05:09:58 PM UTC
   
 
Category:  addressbook Item Group:  0.9.16.000 release
Severity:  3 - Normal Priority:  5 - Normal
Status:  Fixed Privacy:  Public
Assigned to:  jarg Open/Closed:  Closed
Component Version:  SVN Operating System:  MS Windows
Reproducibility:  Every Time Planned Release:  None
Fixed Release: 

Fri 23 Apr 2004 04:51:55 PM UTC, comment #1: 

This has been corrected in CVS.

To grab a complete update of all fixes:

1)  Check to see if you have cvs installed: 'cvs --help'.
1a) If not, install a copy of cvs-cli from your favorite
distro.

2)  Then just type:
    'cd <your phpgroupware dir>; cvs update -dP'.

You can do step 2 as many times in a day as you wish, and
will always get the most current bug fixes.

Thanks,

Jonathan Rivera <jarg>
Thu 15 Apr 2004 05:09:58 PM UTC, original submission:  

The export() function in class.uiXport.inc.php which handles the Export in the Addressbook, will not work if register_globals = OFF. The function depends on using $GLOBALS to get the form vars upon submittion, and those vars will be blank and therefore it thinks you are just entering the page for the first time, essentially doing a refresh upon submittion.

If you comment out the $GLOBALS line, and paste the following code underneath it, it will always get the form vars wether or not register_globals = ON|OFF.

$convert = get_var('convert', array('GET','POST'));
$tsvfilename = get_var('tsvfilename', array('GET','POST'));
$fcat_id = get_var('fcat_id', array('GET','POST'));
$download = get_var('download', array('GET','POST'));
$conv_type = get_var('conv_type', array('GET','POST'));
$both_types = get_var('both_types', array('GET','POST'));
$sub_cats = get_var('sub_cats', array('GET','POST'));

If someone could make a .diff, that would be helpfull to those who don't code.

 - scibe

Alan Oshry <scibe>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-05-01 jarg Open/ClosedOpen Closed
2004-04-23 jarg StatusNone Fixed
2004-04-21 cboettger Assigned toNone jarg

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code