[eluser]_asdf[/eluser]
[quote author="[CoDeR]" date="1209063588"]
Code:
$config['base_url'] = "http://".$_SERVER['HTTP_HOST']."/";
you could always do more work on it, like detecting the protocol.[/quote]Beyond the trusting the data issue, thats pretty ugly code to go in a user's config by default, and fails to take account of the actual directory where the installation might reside (hint: not web root). There's a number of hacks on the forums/wiki which do scheme/host etc sniffing, but they're ugly as sin and greatly decrease the readability of a fairly important config variable.
So, no thanks.