Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] If you copy a large amount of html/Js/ejs into the chat, it affects the interface.

Open BadlyDrawnBoy opened this issue 1 year ago • 2 comments

Describe the bug If you copy a large amount of html/Js/ejs into the chat, it leaks to the interface.

To Reproduce Steps to reproduce the behavior:

  1. Open a flow
  2. Start a chat by copy and paste the content of my (GPT-Pilot) project summery file to the chat
  3. click "send"
  4. See the background color turn from black to white (dark mode)

Expected behavior No impact what ever you send

Setup

  • Installation pnpm start
  • Flowise Version 1.6.5
  • OS: Debian 12
  • Browser: Firefox 125.0.1

project_summary.txt

BadlyDrawnBoy avatar Apr 22 '24 03:04 BadlyDrawnBoy

I got the same issue a while ago.

toi500 avatar Apr 24 '24 00:04 toi500

I got the same issue as well. Wondering if there is a way to limit the input length.

Nilbug avatar May 13 '24 12:05 Nilbug

If this is for embedded chat, it is now resolved. Because previously we did not sanitize the strings, so it pasted as the actual code

HenryHengZJ avatar Sep 19 '24 12:09 HenryHengZJ