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
stylus: support svg sprites with pixmap fallback
[wfpl.git]
/
http.php
diff --git
a/http.php
b/http.php
index
1abd50b
..
6c8f916
100644
(file)
--- a/
http.php
+++ b/
http.php
@@
-78,11
+78,14
@@
function redirect($url, $status = '302 Moved Temporarily', $message = '') {
if(substr($url, 0, 1) == '/') {
$url = this_url_sans_path() . $url;
} else {
if(substr($url, 0, 1) == '/') {
$url = this_url_sans_path() . $url;
} else {
- $url = ereg_replace('/[^/]*$', "/$url", this_url());
+ $url = preg_replace('|/[^/]*$|', "/$url", this_url());
}
}
if(function_exists('session_save_messages')) {
}
}
if(function_exists('session_save_messages')) {
+ if(function_exists('atexit_now')) {
+ atexit_now();
+ }
session_save_messages();
}
session_save_messages();
}