summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-03-03 12:41:55 +0000
committeralecpl <alec@alec.pl>2010-03-03 12:41:55 +0000
commit40353f1a6c7e80ae373a2dcec7ae16db217162a5 (patch)
treecb6154c149ceb6f21b3d061ec85cbaa454e85884 /program
parent44c57afde1ade65d3da64e7ac9880ff6e40359e7 (diff)
- Fix regression in template expressions, don't allow '-' character in env/request/cookie name
Diffstat (limited to 'program')
-rwxr-xr-xprogram/include/rcube_template.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php
index 5272ace20..f8f4963ba 100755
--- a/program/include/rcube_template.php
+++ b/program/include/rcube_template.php
@@ -563,9 +563,9 @@ class rcube_template extends rcube_html_page
array(
'/session:([a-z0-9_]+)/i',
'/config:([a-z0-9_]+)(:([a-z0-9_]+))?/i',
- '/env:([a-z0-9_-]+)/i',
- '/request:([a-z0-9_-]+)/i',
- '/cookie:([a-z0-9_-]+)/i',
+ '/env:([a-z0-9_]+)/i',
+ '/request:([a-z0-9_]+)/i',
+ '/cookie:([a-z0-9_]+)/i',
'/browser:([a-z0-9_]+)/i'
),
array(