Ignore:
Timestamp:
Sep 9, 2022, 8:20:25 PM (2 years ago)
Author:
chronos
Message:
  • Modified: Removed TemplateGenerics package. Generics usage replaced by standard Generics.Collections.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/UWebSession.pas

    r137 r138  
    66  Classes, SysUtils, UHTTPServer, USqlDatabase, UHTTPSessionMySQL, UUser,
    77  UHtmlClasses, UWebPage, UUtils, UXmlClasses, DateUtils, UModularSystem,
    8   UPageList, UWebApp, SpecializedList;
     8  UPageList, UWebApp, UGenerics;
    99
    1010type
     
    8686  try
    8787    BaseUrlParts := TListString.Create;
    88     BaseUrlParts.Explode(BaseURL, '/', StrToStr);
     88    BaseUrlParts.Explode('/', BaseURL);
    8989    while (BaseUrlParts.Count > 0) and (Request.Path.Count > 0) and
    9090      (BaseUrlParts[0] = Request.Path[0]) do begin
     
    104104    except
    105105      on E: Exception do begin
    106         THTMLString(Self.HtmlDocument.Body.SubItems.AddNew(THtmlString.Create)).
    107           Text := Format(SError, [E.Message]);
     106        Self.HtmlDocument.Body.SubItems.AddString.Text := Format(SError, [E.Message]);
    108107        GeneratePage(Page.Page);
    109108      end;
Note: See TracChangeset for help on using the changeset viewer.