diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-06-10 18:38:01 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-06-10 18:38:01 +0200 |
commit | ef1b04619daa7b72ca1a8427702bd3552b848e6c (patch) | |
tree | db3f22c8bd0e5cfb3fec2cda403fcaa20fe38214 /lib/public/util.php | |
parent | c83f418a024190fc7683b45a1009f01f2d039a17 (diff) | |
parent | c11f6cc3f9121fbb337c248807b802c72b18087b (diff) | |
download | nextcloud-server-ef1b04619daa7b72ca1a8427702bd3552b848e6c.tar.gz nextcloud-server-ef1b04619daa7b72ca1a8427702bd3552b848e6c.zip |
fix merge conflicts
Diffstat (limited to 'lib/public/util.php')
-rw-r--r-- | lib/public/util.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/public/util.php b/lib/public/util.php index 9b499574da1..995161e2abe 100644 --- a/lib/public/util.php +++ b/lib/public/util.php @@ -248,6 +248,26 @@ class Util { } + /** + * Register an get/post call. This is important to prevent CSRF attacks + * TODO: write example + */ + public static function callRegister(){ + return(\OC_Util::callRegister()); + } + + + /** + * Check an ajax get/post call if the request token is valid. exit if not. + * Todo: Write howto + */ + public static function callCheck(){ + return(\OC_Util::callCheck()); + } + + + + } ?> |