Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
microduino-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
韩洪虎
microduino-web
Commits
aa8d4f3b
Commit
aa8d4f3b
authored
Nov 10, 2023
by
韩洪虎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
connect
parent
cc9d8fb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
connect.php
cms/e/class/connect.php
+5
-3
No files found.
cms/e/class/connect.php
View file @
aa8d4f3b
...
...
@@ -3799,8 +3799,9 @@ function eReturnDomain(){
{
return
''
;
}
$http_type
=
((
isset
(
$_SERVER
[
'HTTPS'
])
&&
$_SERVER
[
'HTTPS'
]
==
'on'
)
||
(
isset
(
$_SERVER
[
'HTTP_X_FORWARDED_PROTO'
])
&&
$_SERVER
[
'HTTP_X_FORWARDED_PROTO'
]
==
'https'
))
?
'https://'
:
'http://'
;
return
$http_type
.
$domain
;
// $http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://';
// return $http_type.$domain;
return
(
$_SERVER
[
'HTTPS'
]
?
'https'
:
'http'
)
.
'://'
.
$domain
;
}
//返回域名网站地址
...
...
@@ -4038,7 +4039,8 @@ function FWeReturnDomain(){
{
return
''
;
}
return
'http://'
.
$domain
;
// return 'http://'.$domain;
return
(
$_SERVER
[
'HTTPS'
]
?
'https'
:
'http'
)
.
'://'
.
$domain
;
}
//检查敏感字符
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment