While most of CodeIgniter supports protocol-relative URLs, a few URL helpers do not.

Most notably, redirect('//www.facebook.com/aaronadams') led my browser to https://aaronadams.ca/index.php/www.facebook.com/aaronadams.

In this commit, I have fixed the header() helper, along with the anchor() and anchor_popup() helpers, to be compatible with protocol-relative URLs.

Signed-off-by: Aaron Adams <aaron@aaronadams.ca>
1 file changed