Changeset 161

Show
Ignore:
Timestamp:
08/31/06 14:59:39 (2 years ago)
Author:
ludo
Message:

improved parsing (from r3637)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/webmin/lbs_common/lbs_common.pl

    r143 r161  
    228228$in{'mac'}              = $params->{'mac'}      if !$in{'mac'}; 
    229229 
    230 my $host                = $in{'host'}
    231 my $group               = $in{'group'}
    232 my $profile             = $in{'profile'}
     230my $host                = html_escape($in{'host'})
     231my $group               = html_escape($in{'group'})
     232my $profile             = html_escape($in{'profile'})
    233233my %menu; 
     234 
     235$in{'mac'} = html_escape($in{'mac'}); 
    234236 
    235237        # when coming from some modules (backuppc f.ex.), the mac adress 
  • trunk/webmin/lbs_common/lbs_common_priv.pl

    r131 r161  
    1717    if ($in{group}) { 
    1818      my $c = new CGI::Cookie(-name => 'group', 
    19                                   -value => "$in{group}"
     19                                  -value => html_escape($in{group})
    2020                                  -expires => '+1M' 
    2121                                 ); 
     
    2525    if ($in{profile} || $in{profile} eq "") { 
    2626      my $c = new CGI::Cookie(-name => 'profile', 
    27                                   -value => "$in{profile}"
     27                                  -value => html_escape($in{profile})
    2828                                  -expires => '+1M' 
    2929                                 ); 
     
    4242  if (!$in{'group'}) { 
    4343    if ( defined($cookies{'group'}) ) { 
    44       $in{'group'} = $cookies{'group'}->value
     44      $in{'group'} = html_escape($cookies{'group'}->value)
    4545    } 
    4646  } 
    4747  if (! defined($in{'profile'}) ) { 
    4848    if ( defined($cookies{'profile'}) ) { 
    49       $in{'profile'} = $cookies{'profile'}->value
     49      $in{'profile'} = html_escape($cookies{'profile'}->value)
    5050    } 
    5151  }