From 8e6fdb2aba6314b39ff35f034cc0f1159b438e4b Mon Sep 17 00:00:00 2001 From: TheTomcat14 Date: Tue, 26 Sep 2023 22:42:38 +0200 Subject: [PATCH] Dropbox: Fix "view" parameter check - refs #4865 Author: @TheTomcat14 --- main/dropbox/dropbox_init.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/dropbox/dropbox_init.inc.php b/main/dropbox/dropbox_init.inc.php index cbd3ce963b..953ac34193 100755 --- a/main/dropbox/dropbox_init.inc.php +++ b/main/dropbox/dropbox_init.inc.php @@ -283,10 +283,10 @@ $(function () { $checked_files = false; if (!$view || $view == 'received') { $part = 'received'; -} elseif ($view = 'sent') { +} elseif ($view == 'sent') { $part = 'sent'; } else { - header('location: index.php?'.api_get_cidreq().'&view='.$view.'&error=Error'); + header('location: index.php?'.api_get_cidreq().'&view=received&error=Error'); exit; }