Dropbox: Fix "view" parameter check - refs #4865

Author: @TheTomcat14
pull/4909/head
TheTomcat14 2 years ago committed by GitHub
parent b102f68a1f
commit 8e6fdb2aba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      main/dropbox/dropbox_init.inc.php

@ -283,10 +283,10 @@ $(function () {
$checked_files = false; $checked_files = false;
if (!$view || $view == 'received') { if (!$view || $view == 'received') {
$part = 'received'; $part = 'received';
} elseif ($view = 'sent') { } elseif ($view == 'sent') {
$part = 'sent'; $part = 'sent';
} else { } else {
header('location: index.php?'.api_get_cidreq().'&view='.$view.'&error=Error'); header('location: index.php?'.api_get_cidreq().'&view=received&error=Error');
exit; exit;
} }

Loading…
Cancel
Save