public
Description: Slash is the code that runs Slashdot and other discussion sites. Slash is Free Software under the GPLv2.
Homepage: http://www.slashcode.com/
Clone URL: git://github.com/scc/slash.git
Regex bugfix

Avoid "Use of uninitialized value in pattern match" warning
Jamie McCarthy (author)
Thu May 01 20:22:43 -0700 2008
commit  cf5866dca5f4670a947795926040551306790998
tree    611eb2346268c676d1beaee7180e66d0cb97447d
parent  5163dfed1659e9b0fa5e8124540a44e2dcd13728
...
1958
1959
1960
1961
 
1962
1963
1964
...
1958
1959
1960
 
1961
1962
1963
1964
0
@@ -1958,7 +1958,7 @@ sub filter_param {
0
     $special{$key}->($data);
0
   } else {
0
     for my $ri (@regints) {
0
- $data = fixint($data) if /$ri/;
0
+ $data = fixint($data) if $key =~ /$ri/;
0
     }
0
   }
0
 

Comments

    No one has commented yet.