Anonymous | Login | Signup for a new account | 2019-02-16 15:30 CET |
Main | My View | View Issues | Change Log | Roadmap | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
0005573 | [JEDI VCL] 00 JVCL Components | major | always | 2011-05-06 10:14 | 2011-09-21 14:10 | ||
Reporter | PVisser | View Status | public | ||||
Assigned To | AHUser | ||||||
Priority | normal | Resolution | fixed | ||||
Status | resolved | Product Version | |||||
Summary | 0005573: StringToHTML causes #0 (<NUL>) in string | ||||||
Description |
New code (was not there in 3.30) that allows multiple spaces to be turned into causes #0 in the string. Probably optimization problem: instead of using "Length(nbsp)-1" the length has been hardcoded (6). This is fine, except the other code uses "len-1", so it should be 5 in this particular case. Snap of (fixed) JvStrToHTML below: for I := 1 to Len do begin Ch := Value[I]; if Ch = ' ' then begin if (I > 1) and (Value[I - 1] = ' ') then // Offending line had addlen 6 (length(nbsp)) Inc(AddLen, 5 {Length(Nbsp)-1}); end else for J := Low(Conversions) to High(Conversions) do if Ch = Conversions[J].Ch then begin Inc(AddLen, StrLen(Conversions[J].Html) - 1); Break; end; end; |
||||||
Additional Information | |||||||
Tags | No tags attached. | ||||||
Attached Files | |||||||
|
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |