cvs: pearweb /public_html election-info.php election.php
| From: | Arnaud Limbourg | Date: | Sat, 11 Nov 2006 08:30:50 +0000 |
| Subject: | cvs: pearweb /public_html election-info.php election.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-5174@lists.php.net to get a copy of this message | ||
arnaud Sat Nov 11 08:30:50 2006 UTC
Modified files:
/pearweb/public_html election-info.php election.php
Log:
strip_tags on $_SERVER member
http://cvs.php.net/viewvc.cgi/pearweb/public_html/election-info.php?r1=1.3&r2=1.4&diff_format=u
Index: pearweb/public_html/election-info.php
diff -u pearweb/public_html/election-info.php:1.3 pearweb/public_html/election-info.php:1.4
--- pearweb/public_html/election-info.php:1.3 Tue Nov 7 05:47:05 2006
+++ pearweb/public_html/election-info.php Sat Nov 11 08:30:50 2006
@@ -2,7 +2,7 @@
if (!isset($auth_user) || !$auth_user) {
if (isset($_GET['vote'])) {
if (strlen($_SERVER['QUERY_STRING'])) {
- $query = '?' . $_SERVER['QUERY_STRING'];
+ $query = '?' . strip_tags($_SERVER['QUERY_STRING']);
} else {
$query = '';
}
@@ -120,4 +120,4 @@
$info = $voter->electionInfo($_GET['election']);
require dirname(dirname(__FILE__)) . '/templates/election-showresults.tpl.php';
}
-?>
\ No newline at end of file
+?>
http://cvs.php.net/viewvc.cgi/pearweb/public_html/election.php?r1=1.1&r2=1.2&diff_format=u
Index: pearweb/public_html/election.php
diff -u pearweb/public_html/election.php:1.1 pearweb/public_html/election.php:1.2
--- pearweb/public_html/election.php:1.1 Sun Nov 5 22:38:18 2006
+++ pearweb/public_html/election.php Sat Nov 11 08:30:50 2006
@@ -1,7 +1,7 @@
<?php
if (!isset($auth_user) || !$auth_user) {
if (strlen($_SERVER['QUERY_STRING'])) {
- $query = '?' . $_SERVER['QUERY_STRING'];
+ $query = '?' . strip_tags($_SERVER['QUERY_STRING']);
} else {
$query = '';
}
@@ -24,4 +24,4 @@
$allelections = $voter->listAllElections();
require dirname(dirname(__FILE__)) . '/templates/election-vote.tpl.php';
}
-?>
\ No newline at end of file
+?>