X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=blobdiff_plain;f=http.php;h=6c8f916412ef4127777fc836c1eb369b54ed5312;hp=51eb4d39f5d6d797a0a3e2d46a0a65b6163ed8be;hb=196deb2416748b09200f620247a344563dff4c38;hpb=26bad7e66d87374bed4f126c7f202133828e387c diff --git a/http.php b/http.php index 51eb4d3..6c8f916 100644 --- 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()); } }