risoflora / brookframework

Microframework which helps to develop web Pascal applications.
https://risoflora.github.io/brookframework
GNU Lesser General Public License v2.1
238 stars 54 forks source link

TextArea length overrun #33

Closed KevinLeeMorris closed 3 years ago

KevinLeeMorris commented 3 years ago

extra_chars A clear and concise description of what the bug is.

Steps to reproduce:

  1. Create a FORM web page that has a pair of tags
  2. Use Brook 5 Framework functions ARequest.Fields.TryValue() to save the contents to a variable
  3. There will always be some random garbage characters at the end of the field

Example is attached.

Environment:

Windows Server 2016, Lazarus 2.0.10, FPC 3.2.0, and Brook 5 Framework 5.5.0.0 libsagui 3.3.3.0

TEXTAREA_BUG.zip

where_to_add_text

silvioprog commented 3 years ago

It seems related to https://github.com/risoflora/libsagui/issues/52.

silvioprog commented 3 years ago

Fixed by https://github.com/risoflora/libsagui/commit/5ab29649b3c63f71ce3bc7f35848b749a3f80686. Please use latest Sagui library, available at risoflora/libsagui/releases/tag/v3.3.4.And thanks a lot for reporting!