GIT.Harvie.CZ
/
mirrors
/
Kyberia-bloodline.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd15ea3
)
LocalFileInclude security fix
author
niekt0
<niekt0@kyberia.cz>
Wed, 27 Oct 2010 00:05:44 +0000
(
02:05
+0200)
committer
niekt0
<niekt0@kyberia.cz>
Wed, 27 Oct 2010 00:05:44 +0000
(
02:05
+0200)
wwwroot/nodes.php
patch
|
blob
|
blame
|
history
diff --git
a/wwwroot/nodes.php
b/wwwroot/nodes.php
index ef084411e09ba510e153f8fb35e52f64f31739a3..22ec5fc1dbe0da8e42de021ce7f53e2c9665df51 100644
(file)
--- a/
wwwroot/nodes.php
+++ b/
wwwroot/nodes.php
@@
-72,9
+72,10
@@
$smarty->cache_dir = SMARTY_DIR.'cache/';
$smarty->plugins_dir = SMARTY_PLUGIN_DIR ;
if ($_SESSION['debugging']) $smarty->debugging=true;
-//initializing variables
+// initializing variables
+// preg_replace prevents LFI
if (empty($_POST['event'])) $event=false;
-else $event=
$_POST['event']
;
+else $event=
preg_replace( "![^a-zA-Z0-9_]+!", "", $_POST['event'])
;
if ($_SESSION['debugging']) {
This page took
0.149431 seconds
and
4
git commands to generate.