Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shirne committed Nov 23, 2024
1 parent 1676444 commit 811d749
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/application/index/controller/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,10 @@ protected function checkLogin()
protected function canRedirectLogin()
{
$accept = $this->request->header('accept');
if (strpos($accept, 'image') !== false && strpos($accept, 'html') === false) {
return false;
if (!empty($accept)) {
if (strpos($accept, 'image') !== false && strpos($accept, 'html') === false) {
return false;
}
}
if ($this->wechatLogin() && $this->config['wechat_autologin'] == '1') {
if ($this->request->isAjax()) {
Expand Down

0 comments on commit 811d749

Please sign in to comment.