- Fix regression in template expressions, don't allow '-' character in env/request/cookie name

release-0.6
alecpl 15 years ago
parent 44c57afde1
commit 40353f1a6c

@ -563,9 +563,9 @@ class rcube_template extends rcube_html_page
array( array(
'/session:([a-z0-9_]+)/i', '/session:([a-z0-9_]+)/i',
'/config:([a-z0-9_]+)(:([a-z0-9_]+))?/i', '/config:([a-z0-9_]+)(:([a-z0-9_]+))?/i',
'/env:([a-z0-9_-]+)/i', '/env:([a-z0-9_]+)/i',
'/request:([a-z0-9_-]+)/i', '/request:([a-z0-9_]+)/i',
'/cookie:([a-z0-9_-]+)/i', '/cookie:([a-z0-9_]+)/i',
'/browser:([a-z0-9_]+)/i' '/browser:([a-z0-9_]+)/i'
), ),
array( array(

Loading…
Cancel
Save