mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:05:55 +00:00
DiskCache: more strict checking for input filenames, getUrl() is no longer static
This commit is contained in:
@@ -594,6 +594,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
function clean_filename($filename) {
|
||||
return basename(preg_replace("/\.\.|[\/\\\]/", "", $filename));
|
||||
}
|
||||
|
||||
function make_password($length = 12) {
|
||||
$password = "";
|
||||
$possible = "0123456789abcdfghjkmnpqrstvwxyzABCDFGHJKMNPQRSTVWXYZ*%+^";
|
||||
|
||||
Reference in New Issue
Block a user