Changes between Initial Version and Version 1 of Ticket #37670
- Timestamp:
- 08/15/2016 03:21:51 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #37670 – Description
initial v1 1 1 $allowed_hosts is checking againts host value the parsed host value doesn't contain the port number and $wpp does. Thereror hosts aren't matched and wp_validate_redirect fails. 2 2 3 $lp = @parse_url($test); 3 4 {{{ 5 $lp = @parse_url($test); 6 }}} 7 4 8 5 9 equals 6 10 11 12 {{{ 7 13 array (size=4) 8 14 'scheme' => string 'http' (length=4) … … 10 16 'port' => int 3002 11 17 'path' => string '/project/xactly-com/insights/' (length=29) 18 }}} 19 12 20 13 21 where 14 22 15 $wpp = parse_url(home_url()); 23 24 {{{ 25 $wpp = parse_url(home_url()); 26 }}} 27 16 28 17 29 equals 18 30 31 32 {{{ 19 33 array (size=2) 20 34 'scheme' => string 'http' (length=4) 21 35 'host' => string 'localhost:3002' (length=23) 36 }}} 22 37 23 38 24 39 will result in 25 40 26 if (isset($lp['host']) && (!in_array($lp['host'], $allowed_hosts) && $lp['host'] != strtolower($wpp['host']))) { 27 41 42 {{{ 43 if (isset($lp['host']) && (!in_array($lp['host'], $allowed_hosts) && $lp['host'] != strtolower($wpp['host']))) { 44 }}} 45 28 46 29 47 failing