<html>
    <head>
      <base href="https://bugs.freedesktop.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 - xdg-open can't handle URI schemes containing numbers"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=104973">104973</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>xdg-open can't handle URI schemes containing numbers
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Portland
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>minor
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>xdg-utils
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>portland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>elliotkendall@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Per RFC 3986, 'Scheme names consist of a sequence of characters beginning with
a
letter and followed by any combination of letters, digits, plus ("+"), period
("."), or hyphen ("-").' However, the is_file_url_or_path() function in
xdg-open relies on the following regular expression to identify valid URI
schemes:

^[[:alpha:]+\.\-]+:

Not only does that fail on URI schemes that contain numbers (such as h323,
irc6, pkcs11, tn3270, etc.) it also incorrectly identifies strings beginning
with + . or - as valid URIs.

I propose the following replacement:

^[:alpha:][[:alnum:]+\.\-]*:

This bug is present in the most recent version of xdg-open in git.</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>