Ticket Change Details
Not logged in
Overview

Artifact ID: 7e8823530b0f6336ae3dcf1633b33198effaf45b
Ticket: c198af688022e3781e69a27d27bc78b03e1fbd5b
url_parse passes paths through mprintf, breaking % encoding (thus ~ too)
User & Date: anonymous 2010-05-12 14:56:31
Changes

  1. comment changed to:
    <verbatim>
    fossil test-urlparser http://donkey.vernier.se/~fossil/picmidi
    correctly parses and generates http://donkey.vernier.se/%7Efossil/picmidi, which is stored in the fossil.
    
    On loading the remote-url for sync, pull, push, or merely display, this is passed through url_parse again, with devastating results:
    
    fossil test-urlparser http://donkey.vernier.se/%7Efossil/picmidi
    g.urlPath      = /-1.094057E-02fossil/picmidi
    
    I believe the failing line is in src/url.c:
        g.urlPath = mprintf(&zUrl[i]);
    </verbatim>
    
  2. foundin changed to: "b24b2e1bba"
  3. private_contact changed to: "e8353b1e9ee35f57daacf6c405daaabdd612486a"
  4. severity changed to: "Severe"
  5. status changed to: "Open"
  6. title changed to:
    url_parse passes paths through mprintf, breaking % encoding (thus ~ too)
    
  7. type changed to: "Code_Defect"