summaryrefslogtreecommitdiff
path: root/feed.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2014-02-26 01:52:56 +0000
committerChristopher Smith <chris@jalakai.co.uk>2014-02-26 01:52:56 +0000
commit26b26af6b5c3033fc16a799159e374f21d4fb599 (patch)
tree69ae7c4cbfe3ad1486c5f2338e1ede79cd556917 /feed.php
parent4a193141ca703475cd9625b3127016b7c49f507e (diff)
downloadrpg-26b26af6b5c3033fc16a799159e374f21d4fb599.tar.gz
rpg-26b26af6b5c3033fc16a799159e374f21d4fb599.tar.bz2
add security character '$' around REMOTE_USER in cache key to avoid key clashes
Diffstat (limited to 'feed.php')
-rw-r--r--feed.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/feed.php b/feed.php
index e64d5aa3e..c158dc46a 100644
--- a/feed.php
+++ b/feed.php
@@ -20,7 +20,7 @@ $opt = rss_parseOptions();
// the feed is dynamic - we need a cache for each combo
// (but most people just use the default feed so it's still effective)
-$key = join('', array_values($opt)).$_SERVER['REMOTE_USER'].$_SERVER['HTTP_HOST'].$_SERVER['SERVER_PORT'];
+$key = join('', array_values($opt)).'$'.$_SERVER['REMOTE_USER'].'$'.$_SERVER['HTTP_HOST'].$_SERVER['SERVER_PORT'];
$cache = new cache($key, '.feed');
// prepare cache depends