Jeremy Newman : always encode the input var

Jeremy Newman jnewman at winehq.org
Wed Mar 18 15:40:33 CDT 2009


Module: website
Branch: master
Commit: d4bfe46be288bf2e4e7d14ef12fb1bfa38198a5a
URL:    http://source.winehq.org/git/website.git/?a=commit;h=d4bfe46be288bf2e4e7d14ef12fb1bfa38198a5a

Author: Jeremy Newman <jnewman at codeweavers.com>
Date:   Wed Mar 18 15:40:14 2009 -0500

always encode the input var

---

 include/plugins/announce.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/plugins/announce.php b/include/plugins/announce.php
index 0afa313..693db8d 100644
--- a/include/plugins/announce.php
+++ b/include/plugins/announce.php
@@ -13,7 +13,7 @@ global $html, $config;
 $ver = PAGE_PARAMS;
 
 // build tag and announce URL
-$tag = ($ver == "latest") ? "master" : "tags/wine-" . $ver;
+$tag = ($ver == "latest") ? "master" : "tags/wine-" . urlencode($ver);
 $announce = $config->git_tree . "/wine.git/" . $tag . ":ANNOUNCE";
 
 // load announce




More information about the wine-cvs mailing list