mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-06 00:31:27 +00:00
Fix 'save as' link
This commit is contained in:
parent
a871abcb23
commit
e6bfc4c9e5
@ -70,15 +70,9 @@ sub parse_params {
|
||||
sub print_script_preview {
|
||||
my ($saveoptions) = '';
|
||||
foreach $param ($query->param()) {
|
||||
if ($param =~ /^MOZ_/) {
|
||||
if ($param =~ /^(MOZ_|--)/) {
|
||||
next if $query->param($param) eq '';
|
||||
$saveopts .= "$param=".$query->param($param)."&";
|
||||
}
|
||||
if ($param =~ /^--/) {
|
||||
next if $query->param($param) eq '';
|
||||
$saveopts .= "$param";
|
||||
$saveopts .= "=".$query->param($param) if $query->param($param) ne "yes";
|
||||
$saveopts .= "&";
|
||||
$saveopts .= "$param=".$query->param($param).'&';
|
||||
}
|
||||
}
|
||||
chop($saveopts);
|
||||
|
Loading…
x
Reference in New Issue
Block a user