Changeset 7922
- Timestamp:
- 2004-08-10T11:21:08+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/cgi-bin/launch
r7800 r7922 35 35 # ensure only alpha-numeric plus a few other special chars 36 36 37 $val =~ s/[^[:alnum:]@\.\/\- ]//g if (defined $val);37 $val =~ s/[^[:alnum:]@\.\/\- :]//g if (defined $val); 38 38 39 39 return $val; … … 50 50 foreach my $k ( @arg_keys ) { 51 51 my $arg_val = clean_param($cgi,$k); 52 # ensure only alphanumeric, plus a few special chars 53 $arg_val = safe_val($arg_val); 54 $cmd .= " -$k $arg_val" 52 if ($k eq "about") { 53 # special case (allow most things, but not quotes) 54 $arg_val =~ s/\"/"/g; 55 } 56 else { 57 # ensure only alphanumeric, plus a few special chars 58 $arg_val = safe_val($arg_val); 59 } 60 $cmd .= " -$k"; 61 if ($arg_val ne "") { 62 $cmd .= " \"$arg_val\""; 63 } 55 64 } 56 65 … … 93 102 if (defined $col) { 94 103 chdir("collect/$col"); 95 `rm -rf index /*; cp -r building/. index/.`;104 `rm -rf index; cp -r building index`; 96 105 chdir("../.."); 97 106 }
Note:
See TracChangeset
for help on using the changeset viewer.