Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d392b3
)
MDL-51170 core: Scheme section of URL should be case insensitive
author
Andrew Nicols
<andrew@nicols.co.uk>
Fri, 21 Aug 2015 04:26:08 +0000
(12:26 +0800)
committer
Andrew Nicols
<andrew@nicols.co.uk>
Fri, 21 Aug 2015 04:26:10 +0000
(12:26 +0800)
lib/weblib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/weblib.php
b/lib/weblib.php
index
60b65d3
..
f6a6a91
100644
(file)
--- a/
lib/weblib.php
+++ b/
lib/weblib.php
@@
-2590,7
+2590,7
@@
function redirect($url, $message='', $delay=-1) {
// Technically, HTTP/1.1 requires Location: header to contain the absolute path.
// (In practice browsers accept relative paths - but still, might as well do it properly.)
// This code turns relative into absolute.
- if (!preg_match('|^[a-z]+:|', $url)) {
+ if (!preg_match('|^[a-z]+:|
i
', $url)) {
// Get host name http://www.wherever.com.
$hostpart = preg_replace('|^(.*?[^:/])/.*$|', '$1', $CFG->wwwroot);
if (preg_match('|^/|', $url)) {