tanakahisateru / pinoco

Web site development framework using PHP and (mainly) PHPTAL
http://tanakahisateru.github.io/pinoco/
Other
43 stars 10 forks source link

redirect() failed if url_modifier has been set #61

Closed tanakahisateru closed 12 years ago

tanakahisateru commented 12 years ago

I found such header entry: Location: http://mysite/myapp/http://subdomain.mysite/target/path

Pinoco::redirect() uses Pinoco's URL coordination automatically when given path does not start with "http://" or "//". These internal path passed to Pinoco::url() might be converted special form via url_modifier. There are possibility to be converted to full URL which starts with "http://". Such URLs should not be used as internal path.