X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=blobdiff_plain;f=http.php;h=6c8f916412ef4127777fc836c1eb369b54ed5312;hp=51eb4d39f5d6d797a0a3e2d46a0a65b6163ed8be;hb=062d46e16429f2e55573567518cb01c83b319ac4;hpb=b714d3f571fc78989e69c7272c5812eb97479cf0 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()); } }