Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
enc_htmlbrtab: don't double spaces
[wfpl.git]
/
http.php
diff --git
a/http.php
b/http.php
index
51eb4d3
..
6c8f916
100644
(file)
--- a/
http.php
+++ b/
http.php
@@
-78,7
+78,7
@@
function redirect($url, $status = '302 Moved Temporarily', $message = '') {
if(substr($url, 0, 1) == '/') {
$url = this_url_sans_path() . $url;
} else {
- $url = ereg_replace('/[^/]*$', "/$url", this_url());
+ $url = preg_replace('|/[^/]*$|', "/$url", this_url());
}
}