Regex korrekt escapen und Debugmeldungen.
authorSven Schöling <s.schoeling@linet-services.de>
Mon, 7 Sep 2009 09:26:12 +0000 (11:26 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 7 Sep 2009 09:26:12 +0000 (11:26 +0200)
bin/mozilla/menu.pl
bin/mozilla/menuXML.pl
bin/mozilla/menunew.pl
bin/mozilla/menuv3.pl
bin/mozilla/menuv4.pl

index fbf3b2c..a8b4697 100644 (file)
@@ -51,7 +51,7 @@ sub display {
 
   my $callback   = $form->unescape($form->{callback});
   $callback      = URI->new($callback)->rel($callback) if $callback;
-  $callback      = "login.pl?action=company_logo"      if $callback =~ /^(.\/)?$/;
+  $callback      = "login.pl?action=company_logo"      if $callback =~ /^(\.\/)?$/;
 
   $form->header;
 
index 83310da..8f2223b 100644 (file)
@@ -51,7 +51,7 @@ sub display {
   my $charset = $dbcharset || 'ISO-8859-1';
   my $callback            = $form->unescape($form->{callback});
   $callback               = URI->new($callback)->rel($callback) if $callback;
-  $callback               = "login.pl?action=company_logo"      if $callback =~ /^(.\/)?$/;
+  $callback               = "login.pl?action=company_logo"      if $callback =~ /^(\.\/)?$/;
 
   my $text    = $form->create_http_response('content_type' => 'text/xml',
                                             'charset'      => $charset)
index b48abc8..5002b1b 100644 (file)
@@ -52,7 +52,7 @@ sub display {
   $form->{menu_items}     = acc_menu();
   my $callback            = $form->unescape($form->{callback});
   $callback               = URI->new($callback)->rel($callback) if $callback;
-  $callback               = "login.pl?action=company_logo"      if $callback =~ /^(.\/)?$/;
+  $callback               = "login.pl?action=company_logo"      if $callback =~ /^(\.\/)?$/;
   $form->{callback}       = $callback;
 
   print $form->parse_html_template("menu/menunew");
index 31aadf9..14753f2 100644 (file)
@@ -47,7 +47,7 @@ sub display {
   $form->{menu}     = acc_menu();
   my $callback      = $form->unescape($form->{callback});
   $callback         = URI->new($callback)->rel($callback) if $callback;
-  $callback         = "login.pl?action=company_logo"      if $callback =~ /^(.\/)?$/;
+  $callback         = "login.pl?action=company_logo"      if $callback =~ /^(\.\/)?$/;
   $form->{callback} = $callback;
 
   print $form->parse_html_template("menu/menuv3");
index 0ff4f4b..e20c833 100644 (file)
@@ -46,11 +46,8 @@ sub display {
   $form->{date}     = clock_line();
   $form->{menu}     = acc_menu();
   my $callback      = $form->unescape($form->{callback});
-  $main::lxdebug->message(0, ">>>>>  $callback");
   $callback         = URI->new($callback)->rel($callback) if $callback;
-  $main::lxdebug->message(0, ">>>>>  $callback");
-  $callback         = "login.pl?action=company_logo"      if $callback =~ /^(.\/)?$/;
-  $main::lxdebug->message(0, ">>>>>  $callback");
+  $callback         = "login.pl?action=company_logo"      if $callback =~ /^(\.\/)?$/;
   $form->{callback} = $callback;
 
   print $form->parse_html_template("menu/menuv4");