From f9c9481a879263350ffb53533d1a3ebeadb2643b Mon Sep 17 00:00:00 2001 From: Darren Foley Date: Wed, 23 Aug 2023 15:56:07 -0600 Subject: [PATCH] GUACAMOLE-1849: Fix a bug in Parser.js where receive would reparse instructions multiple times. --- guacamole-common-js/src/main/webapp/modules/Parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guacamole-common-js/src/main/webapp/modules/Parser.js b/guacamole-common-js/src/main/webapp/modules/Parser.js index 8cd93f2ca..aa3dbe5ee 100644 --- a/guacamole-common-js/src/main/webapp/modules/Parser.js +++ b/guacamole-common-js/src/main/webapp/modules/Parser.js @@ -208,7 +208,7 @@ Guacamole.Parser = function Parser() { // Immediately truncate buffer if its contents have been // completely parsed, so that the next call to receive() // need not append to the buffer unnecessarily - if (elementEnd + 1 === buffer.length) { + if (!isBuffer && elementEnd + 1 === buffer.length) { elementEnd = -1; buffer = ''; }