[pkg-otr-team] [irssi-plugin-otr] 99/167: Changing how the lang check is done in helpnav.php.

Holger Levsen holger at moszumanska.debian.org
Mon Mar 3 21:55:36 UTC 2014


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to tag 4.0.0
in repository irssi-plugin-otr.

commit ba1768867fa7d8a2d61d18641c382dfb36865534
Author: Rob Smits <rdfsmits at cs.uwaterloo.ca>
Date:   Thu Jun 7 09:23:26 2012 -0400

    Changing how the lang check is done in helpnav.php.
---
 help/helpnav.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/help/helpnav.php b/help/helpnav.php
index 14b0505..5e71d2b 100644
--- a/help/helpnav.php
+++ b/help/helpnav.php
@@ -1,4 +1,6 @@
-<?php $lang = isset($_REQUEST['lang']) ? htmlspecialchars($_REQUEST['lang']) : "en";?>
+<?php
+$lang = ((isset($_REQUEST['lang']) && preg_match('/^[a-z][a-z]$/', $_REQUEST['lang']) > 0) ? $_REQUEST['lang'] : 'en');
+?>
 
 <div class="helpnav">
 <ul>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-otr/packages/irssi-plugin-otr.git



More information about the Pkg-otr-team mailing list