CSRF protection
This commit is contained in:
1 parent
4a9d497a94
commit
6229b82a43
8 files changed
+82
-44
No files matched your search
@@ -150,3 +150,9 @@ function create_pm_header() {
|
||||
return $header;
|
||||
}
|
||||
|
||||
function make_secure_link_token($uri) {
|
||||
global $mod, $config;
|
||||
return substr(sha1($config['cookies']['salt'] . '-' . $uri . '-' . $mod['id']), 0, 8);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user