Skip to content

Commit

Permalink
Trim port number from URL-based domain for cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Grange committed Apr 14, 2023
1 parent 3dd3835 commit 3b34d56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions uCEFBrowserThread.pas
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,9 @@ procedure TCEFBrowserThread.SetCookies;
if domain = '' then begin
var p := Pos('//', url);
domain := Copy(url, p+2, Pos('/', url, p+2)-p-2);
p := Pos(':', domain);
if p > 0 then
SetLength(domain, p-1);
end;

var path := fields.Values['path'];
Expand Down

0 comments on commit 3b34d56

Please sign in to comment.