Use protocol default port with HTTP_X_FORWARDED_PROTO
authorBryan Davis <bd808@wikimedia.org>
Tue, 26 Aug 2014 03:44:22 +0000 (21:44 -0600)
committerBryan Davis <bd808@wikimedia.org>
Tue, 26 Aug 2014 03:54:41 +0000 (21:54 -0600)
commite2fb163be2cc558a6100a3e1af7ec0dbce2d4927
treec613acdd17a2610a5ab766dfd3782a8615c90e59
parent9665a657b005f3a5b882efff3dd5faeba73297d2
Use protocol default port with HTTP_X_FORWARDED_PROTO

When $_SERVER['HTTP_X_FORWARDED_PROTO'] is set, keep the detected
protocol default port rather than using the local server port when
creating a canonical URL.

Bug: 70021
Change-Id: I2b37da5872929e1c461ff20cccf3dfe11f182a2f
includes/WebRequest.php