1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-08 14:16:54 +02:00

CSRF detection text - updated #84

This commit is contained in:
Awilum
2013-01-09 22:27:01 +02:00
parent adac7ea7a3
commit 5db04d5007
10 changed files with 43 additions and 43 deletions

View File

@@ -28,7 +28,7 @@ class PagesAdmin extends Backend
$pages = new Table('pages');
$pages->updateWhere('[slug="'.Request::post('slug').'"]', array('expand' => Request::post('expand')));
Request::shutdown();
} else { die('csrf detected!'); }
} else { die('Request was denied because it contained an invalid security token. Please refresh the page and try again.'); }
}
}
@@ -123,7 +123,7 @@ class PagesAdmin extends Backend
// Redirect
Request::redirect('index.php?id=pages');
} else { die('csrf detected!'); }
} else { die('Request was denied because it contained an invalid security token. Please refresh the page and try again.'); }
break;
@@ -198,7 +198,7 @@ class PagesAdmin extends Backend
}
}
} else { die('csrf detected!'); }
} else { die('Request was denied because it contained an invalid security token. Please refresh the page and try again.'); }
}
@@ -365,7 +365,7 @@ class PagesAdmin extends Backend
}
}
} else { die('csrf detected!'); }
} else { die('Request was denied because it contained an invalid security token. Please refresh the page and try again.'); }
}
// Get all pages
@@ -487,7 +487,7 @@ class PagesAdmin extends Backend
// Redirect
Request::redirect('index.php?id=pages');
} else { die('csrf detected!'); }
} else { die('Request was denied because it contained an invalid security token. Please refresh the page and try again.'); }
}
break;