summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-07-14 01:22:28 +0200
committerAndrey Andreev <narf@devilix.net>2014-07-14 01:22:28 +0200
commit466af6c937bb7402cafe4f6c1392df7ccc526953 (patch)
tree42e92ab9eb34cc87bc6335f5578b2d7177daa84b /system/core
parent35a7b44d6515e5ceae0151119a56904296a32ee5 (diff)
parent2761ff49f406d43c749ea87f7d5ebd4e2b7c3197 (diff)
Merge pull request #3134 from kdazzle/patch-1
Return 403 instead of 500 if no CSRF token given
Diffstat (limited to 'system/core')
-rwxr-xr-xsystem/core/Security.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Security.php b/system/core/Security.php
index c4621d588..68e345c54 100755
--- a/system/core/Security.php
+++ b/system/core/Security.php
@@ -275,7 +275,7 @@ class CI_Security {
*/
public function csrf_show_error()
{
- show_error('The action you have requested is not allowed.');
+ show_error('The action you have requested is not allowed.', 403);
}
// --------------------------------------------------------------------