diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-10-16 00:09:53 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-10-16 00:09:53 +0000 |
commit | 7807d6586a198c75e3d4f72c4b360bee061b817f (patch) | |
tree | 016196aa5d873356140bedc4c959c1ae916a2b5e /plugins/event_tracer | |
parent | 57a366a7a5d5a08f24a5fb0c00bc12c297221d19 (diff) |
- fix vulnerability http://www.milw0rm.com/exploits/6755
git-svn-id: http://piwigo.org/svn/branches/2.0@2755 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/event_tracer')
-rw-r--r-- | plugins/event_tracer/event_list.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/event_tracer/event_list.php b/plugins/event_tracer/event_list.php index ae617fe87..1cde14ef3 100644 --- a/plugins/event_tracer/event_list.php +++ b/plugins/event_tracer/event_list.php @@ -16,7 +16,7 @@ function get_php_files($path, $to_ignore=array(), $recursive=true ) if ( $recursive and is_dir($path.'/'.$node) ) { $files = array_merge($files, get_php_files($path.'/'.$node, $to_ignore)); - + } if ( is_file($path.'/'.$node) ) { @@ -43,7 +43,7 @@ foreach ($files as $file) $code = preg_replace( '#\?'.'>.*<\?php#m', '', $code); $code = preg_replace( '#\/\*.*\*\/#m', '', $code); $code = preg_replace( '#\/\/.*#', '', $code); - + $count = preg_match_all( '#[^a-zA-Z_$-]trigger_(action|event)\s*\(\s*([^,)]+)#m', $code, $matches @@ -57,7 +57,7 @@ foreach ($files as $file) } } -$sort= isset($_GET['sort']) ? $_GET['sort'] : 1; +$sort= isset($_GET['sort']) ? (int)$_GET['sort'] : 1; usort( $events, create_function( '$a,$b', 'return $a['.$sort.']>$b['.$sort.'];' ) |