diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-02-09 17:35:19 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-02-09 17:35:19 +0100 |
commit | 47c7eb4e709b92a2c0e1da947b4a2810e7d31180 (patch) | |
tree | 03b5eeee16c775ca50a91d2a13ab3741295bb2ab /lib/public | |
parent | 5d8f1a1de3f542a94501c45c500fde2f5fa997c4 (diff) | |
parent | 770fa761b8bf8452ff17a2036ca8413e74935a3d (diff) | |
download | nextcloud-server-47c7eb4e709b92a2c0e1da947b4a2810e7d31180.tar.gz nextcloud-server-47c7eb4e709b92a2c0e1da947b4a2810e7d31180.zip |
Merge pull request #13973 from owncloud/enhancement/security/13366
Respect `mod_unique_id` and refactor `OC_Request::getRequestId`
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/irequest.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/public/irequest.php b/lib/public/irequest.php index 988b3aebd7b..b5ea1fa95da 100644 --- a/lib/public/irequest.php +++ b/lib/public/irequest.php @@ -127,4 +127,11 @@ interface IRequest { * @return bool true if CSRF check passed */ public function passesCSRFCheck(); + + /** + * Returns an ID for the request, value is not guaranteed to be unique and is mostly meant for logging + * If `mod_unique_id` is installed this value will be taken. + * @return string + */ + public function getId(); } |