WordPress.org

Make WordPress Core

Ticket #41331: 41331.2.patch

File 41331.2.patch, 1.5 KB (added by johnpgreen, 2 years ago)
  • wp-admin/includes/class-wp-community-events.php

     
    221221         * a proxy. In those cases, $_SERVER['REMOTE_ADDR'] is set to the proxy address rather
    222222         * than the user's actual address.
    223223         *
    224          * Modified from http://stackoverflow.com/a/2031935/450127, MIT license.
     224         * Modified from https://stackoverflow.com/a/2031935/450127, MIT license.
    225225         * Modified from https://github.com/geertw/php-ip-anonymizer, MIT license.
    226226         *
    227227         * SECURITY WARNING: This function is _NOT_ intended to be used in
  • wp-includes/rest-api/class-wp-rest-request.php

     
    181181         * Note that we treat `-` (dashes) and `_` (underscores) as the same
    182182         * character, as per header parsing rules in both Apache and nginx.
    183183         *
    184          * @link http://stackoverflow.com/q/18185366
    185          * @link http://wiki.nginx.org/Pitfalls#Missing_.28disappearing.29_HTTP_headers
     184         * @link https://stackoverflow.com/q/18185366
     185         * @link https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/#missing-disappearing-http-headers
    186186         * @link https://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers
    187187         *
    188188         * @since 4.4.0