/[smeserver]/rpms/e-smith-LPRng/sme10/e-smith-LPRng-2.6.0-bz12106-untainting.patch
ViewVC logotype

Diff of /rpms/e-smith-LPRng/sme10/e-smith-LPRng-2.6.0-bz12106-untainting.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by jpp, Sun Jul 17 04:27:59 2022 UTC Revision 1.2 by jpp, Sun Jul 17 04:45:24 2022 UTC
# Line 6  diff -Nur --no-dereference e-smith-LPRng Line 6  diff -Nur --no-dereference e-smith-LPRng
6    
7       my $location = $q->param ('location');       my $location = $q->param ('location');
8  -    if ($location =~ /^(.*)$/)  -    if ($location =~ /^(.*)$/)
9  +    if ($location =~ /^(lp0|lp1|lp2|remote|usb\/lp0|usb\/lp1)$/)  +    if ($location =~ /^(lp[0-9]+|remote|usb\/lp0|usb\/lp[0-9]+)$/)
10       {       {
11           $location = $1;           $location = $1;
12       }       }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed