WordPress.org

Make WordPress Core

Ticket #10298: pluggable.php.patch

File pluggable.php.patch, 487 bytes (added by dwright, 8 years ago)

patch assumes the idna library idna_convert.class.php is available in the path

  • wp-includes/pluggable.php

     
    858858        if ( !$location ) // allows the wp_redirect filter to cancel a redirect
    859859                return false;
    860860
     861        require_once('idna_convert.class.php');
     862        $IDN = new idna_convert();
     863        $location = $IDN->encode($location);
     864
    861865        $location = wp_sanitize_redirect($location);
    862866
    863867        if ( $is_IIS ) {