Changeset 305


Ignore:
Timestamp:
Jul 9, 2008, 8:58:39 PM (17 years ago)
Author:
RBRi
Message:

fixes for improved url handling (in the about dialog)

Location:
branches/2.19_branch/NewView
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.19_branch/NewView/ProductInformationFormUnit.pas

    r294 r305  
    5252Procedure TProductInformationForm.EmailEditOnClick (Sender: TObject);
    5353Begin
    54   LaunchURL( 'mailto://' + EmailEdit.Text );
     54  LaunchURL('"mailto:' + EmailEdit.Text + '"');
    5555End;
    5656
    5757Procedure TProductInformationForm.WebPageEditOnClick (Sender: TObject);
    5858Begin
    59   LaunchURL( 'http://' + WebPageEdit.Text );
     59  LaunchURL('"http://' + WebPageEdit.Text + '"');
    6060End;
     61
    6162
    6263Procedure TProductInformationForm.ProductInformationFormOnSetupShow (Sender: TObject);
     
    6465  ScaleForm( self, 11, 16 );
    6566End;
     67
    6668
    6769Procedure TProductInformationForm.OnLanguageEvent( Language: TLanguageFile;
  • branches/2.19_branch/NewView/WebBrowserUnit.pas

    r301 r305  
    160160    end;
    161161
    162     if StrStartsWithIgnoringCase(aURL, '"ftp') then
     162    if StrStartsWithIgnoringCase(aURL, '"ftp')
     163       or StrStartsWithIgnoringCase(aURL, 'ftp')
     164    then
    163165    begin
    164166      tmpAlternativeExe := GetDefaultFtpExe;
     
    170172      end
    171173    end
    172     else if StrStartsWithIgnoringCase(aURL, '"mailto') then
     174    else if StrStartsWithIgnoringCase(aURL, '"mailto')
     175            or StrStartsWithIgnoringCase(aURL, 'mailto')
     176    then
    173177    begin
    174178      tmpAlternativeExe := GetDefaultMailExe;
     
    180184      end
    181185    end
    182     else if StrStartsWithIgnoringCase(aURL, '"news') then
     186    else if StrStartsWithIgnoringCase(aURL, '"news')
     187            or StrStartsWithIgnoringCase(aURL, '"news')
     188    then
    183189    begin
    184190      tmpAlternativeExe := GetDefaultNewsExe;
Note: See TracChangeset for help on using the changeset viewer.