Changeset 23142


Ignore:
Timestamp:
2010-10-15T00:37:58+13:00 (14 years ago)
Author:
davidb
Message:

Fixed to correctly lookup cgi arguments 'collect' and 'oid'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/cgi-bin/talkback-transfer.pl

    r23138 r23142  
    6666    require talkback;
    6767
    68     my $oid     = $gsdl_cgi->{'oid'};
    69     my $collect = $gsdl_cgi->{'collect'};
     68    my $oid     = $gsdl_cgi->param('oid');
     69    my $collect = $gsdl_cgi->param('collect');
    7070
    7171    # sanity check
    7272    if (!defined $oid || !defined $collect) {
    7373    print STDOUT "Content-type:text/plain\n\n";
    74     print STDOUT "ERROR: Malformed CGI argments.  Neeed to specify 'oid' and 'collect'\n";
     74    print STDOUT "ERROR: Malformed CGI argments.  Need to specify 'oid' and 'collect'\n";
    7575    exit 0;
    7676    }
     
    8888       [ 'yes_upload'   => '1',
    8989         'process'      => '1',
     90         'oid'          => $oid,
     91         'collect'      => $collect,
    9092         'uploadedfile' => [$docxml_filename, "$uniq_prefix-doc.xml"]
    9193         ],
Note: See TracChangeset for help on using the changeset viewer.