Revision f2078516
Von Sven Schöling vor etwa 15 Jahren hinzugefügt
bin/mozilla/menuv3.pl | ||
---|---|---|
34 | 34 |
|
35 | 35 |
$menufile = "menu.ini"; |
36 | 36 |
use SL::Menu; |
37 |
use URI; |
|
37 | 38 |
|
38 | 39 |
1; |
39 | 40 |
|
... | ... | |
44 | 45 |
|
45 | 46 |
$form->{date} = clock_line(); |
46 | 47 |
$form->{menu} = acc_menu(); |
47 |
$form->{callback} = $form->unescape($form->{callback}) || "login.pl?action=company_logo"; |
|
48 |
my $callback = $form->unescape($form->{callback}); |
|
49 |
$callback = URI->new($callback)->rel($callback) if $callback; |
|
50 |
$callback = "login.pl?action=company_logo" if $callback =~ /^(.\/)?$/; |
|
51 |
$form->{callback} = $callback; |
|
48 | 52 |
|
49 | 53 |
print $form->parse_html_template("menu/menuv3"); |
50 | 54 |
|
Auch abrufbar als: Unified diff
Nur realtive URIs für logon.pl?callback= erlauben.