Changeset 7768
- Timestamp:
- 2004-07-19T17:36:08+12:00 (20 years ago)
- Location:
- trunk/gsdl/cgi-bin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/cgi-bin/launch
r7766 r7768 135 135 136 136 my $col = clean_param($cgi,"c"); 137 if (defined $col) { 138 $cgi->delete("c"); 139 $col = safe_val($col); 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; 140 141 } 142 143 $cgi->delete("c"); 144 $col = safe_val($col); 141 145 142 146 if ($cmd eq "mkcol") { -
trunk/gsdl/cgi-bin/upload
r7766 r7768 35 35 my $cgi = init_cgi(); 36 36 37 print STDERR "*** started upload script\n";38 39 37 my ($gsdlhome) = usabcgi::get_config_info("gsdlhome"); 40 38 … … 43 41 $dir = "" if (($dir eq ".") || ($dir =~ m/^\.\./)); 44 42 43 if ((!defined $col) || ($col =~ m/^\s*$/)) { 44 print "Content-type:text/plain\n\n"; 45 print "Error: No collection name specified\n"; 46 exit; 47 } 48 49 45 50 my $zip_content = clean_param($cgi,"zip"); 46 51 my $zip_fname = "$col.zip"; 47 52 48 53 chdir "$gsdlhome/collect/"; 49 print STDERR "**** deleting $col/$dir\n";50 54 `rm -rf $col/$dir`; 51 55
Note:
See TracChangeset
for help on using the changeset viewer.