mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Prepare 2.5.3
This commit is contained in:
parent
5ac6b6bff9
commit
b795622f06
5 changed files with 60 additions and 46 deletions
|
@ -25,17 +25,17 @@ class ExportController extends Controller
|
|||
*
|
||||
* @return \Symfony\Component\HttpFoundation\Response
|
||||
*/
|
||||
public function downloadEntryAction(Request $request, $format)
|
||||
public function downloadEntryAction(Request $request, $format, $id)
|
||||
{
|
||||
try {
|
||||
try {
|
||||
$entry = $this->get('wallabag_core.entry_repository')
|
||||
->find((int) $request->query->get('id'));
|
||||
->find((int) $id);
|
||||
|
||||
/**
|
||||
/*
|
||||
* We duplicate EntryController::checkUserAction here as a quick fix for an improper authorization vulnerability
|
||||
*
|
||||
* This should be eventually rewritten
|
||||
*/
|
||||
*/
|
||||
if (null === $entry || null === $this->getUser() || $this->getUser()->getId() !== $entry->getUser()->getId()) {
|
||||
throw new NotFoundHttpException();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue