Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 31b977d6

Von Sven Schöling vor etwa 15 Jahren hinzugefügt

  • ID 31b977d60bf4b65b265b4d742b433ffea855d540
  • Vorgänger f2078516
  • Nachfolger ed661987

Regex korrekt escapen und Debugmeldungen.

Unterschiede anzeigen:

bin/mozilla/menu.pl
51 51

  
52 52
  my $callback   = $form->unescape($form->{callback});
53 53
  $callback      = URI->new($callback)->rel($callback) if $callback;
54
  $callback      = "login.pl?action=company_logo"      if $callback =~ /^(.\/)?$/;
54
  $callback      = "login.pl?action=company_logo"      if $callback =~ /^(\.\/)?$/;
55 55

  
56 56
  $form->header;
57 57

  
bin/mozilla/menuXML.pl
51 51
  my $charset = $dbcharset || 'ISO-8859-1';
52 52
  my $callback            = $form->unescape($form->{callback});
53 53
  $callback               = URI->new($callback)->rel($callback) if $callback;
54
  $callback               = "login.pl?action=company_logo"      if $callback =~ /^(.\/)?$/;
54
  $callback               = "login.pl?action=company_logo"      if $callback =~ /^(\.\/)?$/;
55 55

  
56 56
  my $text    = $form->create_http_response('content_type' => 'text/xml',
57 57
                                            'charset'      => $charset)
bin/mozilla/menunew.pl
52 52
  $form->{menu_items}     = acc_menu();
53 53
  my $callback            = $form->unescape($form->{callback});
54 54
  $callback               = URI->new($callback)->rel($callback) if $callback;
55
  $callback               = "login.pl?action=company_logo"      if $callback =~ /^(.\/)?$/;
55
  $callback               = "login.pl?action=company_logo"      if $callback =~ /^(\.\/)?$/;
56 56
  $form->{callback}       = $callback;
57 57

  
58 58
  print $form->parse_html_template("menu/menunew");
bin/mozilla/menuv3.pl
47 47
  $form->{menu}     = acc_menu();
48 48
  my $callback      = $form->unescape($form->{callback});
49 49
  $callback         = URI->new($callback)->rel($callback) if $callback;
50
  $callback         = "login.pl?action=company_logo"      if $callback =~ /^(.\/)?$/;
50
  $callback         = "login.pl?action=company_logo"      if $callback =~ /^(\.\/)?$/;
51 51
  $form->{callback} = $callback;
52 52

  
53 53
  print $form->parse_html_template("menu/menuv3");
bin/mozilla/menuv4.pl
46 46
  $form->{date}     = clock_line();
47 47
  $form->{menu}     = acc_menu();
48 48
  my $callback      = $form->unescape($form->{callback});
49
  $main::lxdebug->message(0, ">>>>>  $callback");
50 49
  $callback         = URI->new($callback)->rel($callback) if $callback;
51
  $main::lxdebug->message(0, ">>>>>  $callback");
52
  $callback         = "login.pl?action=company_logo"      if $callback =~ /^(.\/)?$/;
53
  $main::lxdebug->message(0, ">>>>>  $callback");
50
  $callback         = "login.pl?action=company_logo"      if $callback =~ /^(\.\/)?$/;
54 51
  $form->{callback} = $callback;
55 52

  
56 53
  print $form->parse_html_template("menu/menuv4");

Auch abrufbar als: Unified diff