Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c6801b
)
avoid NOTICes by checking isset() first
author
Jason Woofenden
<jason@jasonwoof.com>
Thu, 8 Oct 2015 20:50:39 +0000
(16:50 -0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Thu, 8 Oct 2015 20:50:39 +0000
(16:50 -0400)
http.php
patch
|
blob
|
history
diff --git
a/http.php
b/http.php
index
76c6684
..
b1f2aec
100644
(file)
--- a/
http.php
+++ b/
http.php
@@
-8,7
+8,7
@@
# return our best guess at the url used to access this page, without the path or query string
function this_url_sans_path() {
- if(strtolower($_SERVER['HTTPS']) == 'on' || strtolower($_SERVER['HTTPS']) == 'yes') {
+ if (isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on' || strtolower($_SERVER['HTTPS']) == 'yes')) {
$url = 'https';
$expected_port = 443;
} else {