Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Adding token to basicPurgeFilters #117

Merged
merged 1 commit into from
Nov 22, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/LaravelBook/Ardent/Ardent.php
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,11 @@ protected function addBasicPurgeFilters() {
return false;
}

// "_token" is used by Illuminate\Html\FormBuilder to add CSRF protection
if (strcmp($attributeKey, '_token') === 0) {
return false;
}

return true;
};

Expand Down