Skip to content

Commit 4ff3437

Browse files
committed
Update WorkermanServer.php
1 parent fc589c2 commit 4ff3437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ubiquity/servers/workerman/WorkermanServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ protected function handle(ConnectionInterface $connection,$datas) {
124124
Http::header('Date: '.gmdate('D, d M Y H:i:s').' GMT');
125125
$_GET['c'] = '';
126126
$uri = \ltrim(\urldecode(\parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)), '/');
127-
if (($uri!='favicon.ico') && ($uri == null || ! ($fe=\file_exists($this->basedir . '/../' . $uri)))) {
127+
if (($uri == null || ! ($fe=\file_exists($this->basedir . '/../' . $uri))) && ($uri!='favicon.ico')) {
128128
$_GET['c'] = $uri;
129129
} else {
130130
if($fe){

0 commit comments

Comments
 (0)