projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Den Rest von dn.pl auf die Verwendung von HTML-Vorlagen umgestellt.
[kivitendo-erp.git]
/
bin
/
mozilla
/
common.pl
diff --git
a/bin/mozilla/common.pl
b/bin/mozilla/common.pl
index
b661c34
..
7f557fb
100644
(file)
--- a/
bin/mozilla/common.pl
+++ b/
bin/mozilla/common.pl
@@
-45,20
+45,27
@@
sub restore_form {
sub build_std_url {
$lxdebug->enter_sub();
sub build_std_url {
$lxdebug->enter_sub();
- my $url = "$form->{script}?";
- my $first = 1;
+ my $script = $form->{script};
+
+ my @parts;
+
foreach my $key ((qw(login password), @_)) {
next unless ($key);
foreach my $key ((qw(login password), @_)) {
next unless ($key);
- $url .= "&" unless ($first);
- $first = 0;
- if ($key =~ /=/) {
- $url .= $key;
+ if ($key =~ /(.*?)=(.*)/) {
+ if ($1 eq 'script') {
+ $script = $2;
+ } else {
+ push @parts, $key;
+ }
+
} else {
} else {
-
$url .=
"${key}=" . E($form->{$key});
+
push @parts,
"${key}=" . E($form->{$key});
}
}
}
}
+ my $url = "${script}?" . join('&', @parts);
+
$lxdebug->leave_sub();
return $url;
$lxdebug->leave_sub();
return $url;