avoid hashing an empty string

This commit is contained in:
Joshua Seigler 2016-06-26 13:21:12 -04:00
parent d322de201c
commit efac02515e

View file

@ -14,7 +14,7 @@
// return location and name for cache file // return location and name for cache file
function cache_file() function cache_file()
{ {
return CACHE_PATH . md5($_SERVER['REQUEST_URI']); return CACHE_PATH . md5('buffer'.$_SERVER['REQUEST_URI']);
} }
// display cached file if present and not expired // display cached file if present and not expired