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
cc9d8fb5
Commit
cc9d8fb5
authored
Nov 10, 2023
by
韩洪虎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reset
parent
42548a93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
connect.php
cms/e/class/connect.php
+2
-4
No files found.
cms/e/class/connect.php
View file @
cc9d8fb5
...
...
@@ -3800,8 +3800,7 @@ 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;
return
(
$_SERVER
[
'HTTPS'
]
?
'https'
:
'http'
)
.
'://'
.
$domain
;
return
$http_type
.
$domain
;
}
//返回域名网站地址
...
...
@@ -4039,8 +4038,7 @@ function FWeReturnDomain(){
{
return
''
;
}
// return 'http://'.$domain;
return
(
$_SERVER
[
'HTTPS'
]
?
'https'
:
'http'
)
.
'://'
.
$domain
;
return
'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