Revision f2078516
Von Sven Schöling vor etwa 15 Jahren hinzugefügt
bin/mozilla/menuXML.pl | ||
---|---|---|
41 | 41 |
|
42 | 42 |
use CGI::Carp qw(fatalsToBrowser); |
43 | 43 |
use Encode; |
44 |
use URI; |
|
44 | 45 |
1; |
45 | 46 |
|
46 | 47 |
# end of main |
... | ... | |
48 | 49 |
sub display { |
49 | 50 |
$locale = Locale->new($language, "menu"); |
50 | 51 |
my $charset = $dbcharset || 'ISO-8859-1'; |
51 |
my $callback = $form->unescape($form->{callback}) || "login.pl?action=company_logo"; |
|
52 |
my $callback = $form->unescape($form->{callback}); |
|
53 |
$callback = URI->new($callback)->rel($callback) if $callback; |
|
54 |
$callback = "login.pl?action=company_logo" if $callback =~ /^(.\/)?$/; |
|
52 | 55 |
|
53 | 56 |
my $text = $form->create_http_response('content_type' => 'text/xml', |
54 | 57 |
'charset' => $charset) |
Auch abrufbar als: Unified diff
Nur realtive URIs für logon.pl?callback= erlauben.