Changeset 99 for trunk/Packages
- Timestamp:
- Oct 2, 2012, 2:12:16 PM (12 years ago)
- Location:
- trunk/Packages/CoolWeb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CoolWeb/Persistence/USqlDatabase.pas
r84 r99 55 55 LastUsedTable: string; 56 56 LastQuery: string; 57 function EscapeString(Text: string): string; 57 58 procedure CreateDatabase; 58 59 procedure CreateTable(Name: string); … … 451 452 end; 452 453 454 function TSqlDatabase.EscapeString(Text: string): string; 455 var 456 L: Integer; 457 begin 458 SetLength(Result, Length(Text) * 2 + 1); 459 L := mysql_real_escape_string(FSession, PChar(Result), PChar(Text), Length(Text)); 460 SetLength(Result, L); 461 end; 462 453 463 { TDbRows } 454 464 -
trunk/Packages/CoolWeb/WebServer/UHTTPServerTCP.pas
r98 r99 93 93 end; 94 94 95 96 97 95 // Process cookies 98 96 if Request.Headers.SearchKey('Cookie') <> -1 then
Note:
See TracChangeset
for help on using the changeset viewer.