Changeset 226 for Common/UURI.pas


Ignore:
Timestamp:
Apr 6, 2011, 3:08:13 PM (14 years ago)
Author:
george
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/UURI.pas

    r222 r226  
    238238    Scheme := TURI(Source).Scheme;
    239239    Authority := TURI(Source).Authority;
    240     Path := TURI(Source).Path;
     240    Path.Assign(TURI(Source).Path);
    241241    Fragment := TURI(Source).Fragment;
    242242    Query := TURI(Source).Query;
     
    310310    RightCutString(AValue, Extension, ExtensionSeparator);
    311311    Extension := ExtensionSeparator + Extension;
    312   end;
     312  end else Extension := '';
    313313  if Pos(DirectorySeparator, AValue) > 0 then RightCutString(AValue, Name, DirectorySeparator)
    314314    else begin
     
    319319    LeftCutString(AValue, Drive, DriveSeparator);
    320320    Drive := Drive + DriveSeparator;
    321   end;
     321  end else Drive := '';
    322322  Directory.AsString := AValue;
    323323end;
Note: See TracChangeset for help on using the changeset viewer.