Commit: 4f517956355cd773a455a1d05caef6079b060757 Author: Hannes Magnusson <bj...@mongodb.com> Tue, 10 Dec 2013 17:31:32 -0800 Parents: 546998eab548c4747a62d736ff97c4f538f51f79 Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=4f517956355cd773a455a1d05caef6079b060757 Log: Whops. fail fail. Set the hostname when no port is set Changed paths: M include/prepend.inc Diff: diff --git a/include/prepend.inc b/include/prepend.inc index 03f8ab2..2337268 100644 --- a/include/prepend.inc +++ b/include/prepend.inc @@ -20,6 +20,8 @@ if (isset($_SERVER["HTTP_ORIGIN"])) { } if (isset($host["port"])) { $hostname = $host["host"] . ":" . $host["port"]; + } else { + $hostname = $host["host"]; } header("Access-Control-Allow-Origin: http://$hostname"); -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php