<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Following redirects to non-punycoded domains"
   href="https://bugs.webkit.org/show_bug.cgi?id=160890">160890</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Following redirects to non-punycoded domains
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Safari 9
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ruslan.kudubayev&#64;gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Latest Safari both on iPhone and Mac seem to have an issue with following redirects to urls where the domain is non-punycoded (i.e. using international characters). When same url is pasted into the address bar the dns resolves correctly.

To reproduce, you'd generally need a redirector - it's hard to find one that wouldn't automatically punycode the urls.
I've created a 302 redirect on a cloud machine (redirects to russian domain кто.рф). This does not work on iPhone's Safari and Chrome (works in Google Search App). Works fine on my desktop machine (unix, chrome) and using wget command. On Mac, it doesn't work on Safari, but works in Chrome. So seems like a webkit issue.

Test url: <a href="http://104.197.144.181/punycodetest.php">http://104.197.144.181/punycodetest.php</a> - I'll take this down in a few days.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>