EllisLab/CodeIgniter — pull request #2059 by aaronadamsTO (2012-12-07 04:42:18+00:00)
Title: Fix URL helpers to recognize protocol-relative URLs.

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