aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-09-13 20:52:47 +0000
committerplegall <plg@piwigo.org>2010-09-13 20:52:47 +0000
commit7ce249f0bbb019c12c694884cd9f676189b1b43c (patch)
treee4e094f8aa927d941411e2b5b3786b90d5b34ef0
parent54211267437a7f9f6b648f811b87b8b1f030e32c (diff)
merge r6905 from branch 2.1 to trunk
bug 1849 fixed: protect $_GET keys against SQL injections before parsing URL. git-svn-id: http://piwigo.org/svn/trunk@6906 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/section_init.inc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php
index a4e10f806..38536ba90 100644
--- a/include/section_init.inc.php
+++ b/include/section_init.inc.php
@@ -61,6 +61,10 @@ else
$rewritten = $key;
break;
}
+
+ // the $_GET keys are not protected in include/common.inc.php, only the values
+ $rewritten = pwg_db_real_escape_string($rewritten);
+
$page['root_path'] = PHPWG_ROOT_PATH;
}