Changeset 7800 for trunk


Ignore:
Timestamp:
2004-07-22T14:24:44+12:00 (20 years ago)
Author:
davidb
Message:

Preventing scripts from being launched without a collection set too
restrictive -- pluginfo.pl for example needs to be called by GLI with
no collection to determing plugins and their options. Changed to all
for this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/cgi-bin/launch

    r7769 r7800  
    108108    my ($col,$cgi) = @_;
    109109
     110    if ((!defined $col) || ($col =~ m/^\s*$/)) {
     111    print "Content-type:text/plain\n\n";
     112    print "Error: No collection name specified\n";
     113    exit;
     114    }
     115
    110116    chdir("collect");
    111117
     
    135141
    136142    my $col = clean_param($cgi,"c");
    137     if ((!defined $col) || ($col =~ m/^\s*$/)) {
    138     print "Content-type:text/plain\n\n";
    139     print "Error: No collection name specified\n";
    140     exit;
    141     }
    142143
    143144    $cgi->delete("c");
Note: See TracChangeset for help on using the changeset viewer.