Skip to content

Commit

Permalink
ignore server relative paths in #redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Lunzenauer committed Oct 6, 2009
1 parent a79a0bf commit 2efef7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/controller.php
Expand Up @@ -189,7 +189,7 @@ function redirect($to) {
$this->performed = TRUE;

# get uri; keep absolute URIs
$url = preg_match('#^[a-z]+://#', $to)
$url = preg_match('#^(/|\w+://)#', $to)
? $to
: $this->url_for($to);

Expand Down

0 comments on commit 2efef7d

Please sign in to comment.