diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2014-02-26 01:52:56 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2014-02-26 01:52:56 +0000 |
commit | 26b26af6b5c3033fc16a799159e374f21d4fb599 (patch) | |
tree | 69ae7c4cbfe3ad1486c5f2338e1ede79cd556917 | |
parent | 4a193141ca703475cd9625b3127016b7c49f507e (diff) | |
download | rpg-26b26af6b5c3033fc16a799159e374f21d4fb599.tar.gz rpg-26b26af6b5c3033fc16a799159e374f21d4fb599.tar.bz2 |
add security character '$' around REMOTE_USER in cache key to avoid key clashes
-rw-r--r-- | feed.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |