EllisLab/CodeIgniter — pull request #672 by steveheinsch (2011-11-16 04:24:59+00:00)
Title: Add server port during automatic server name detection

/system/core/Config.php

Just add port number to server name if it is not standard port 80 during the automatic setting of base_url when not explicitly set in /application/config/config.php.