From 444891f09f5b4b15c638f6eb76b20d332aadba11 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Wed, 10 Jan 2018 03:50:53 +0000
Subject: [PATCH] Fix the beep (ASCII 7) character detection in lib.is_valid()
 JavaScript doesn't support the \a (alert) escape char apparently.

---
 exec/load/avatar_lib.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/exec/load/avatar_lib.js b/exec/load/avatar_lib.js
index 0d61d39bc9..64bc340ac5 100644
--- a/exec/load/avatar_lib.js
+++ b/exec/load/avatar_lib.js
@@ -33,11 +33,11 @@ function is_valid(buf)
 			switch(e) {
 				case '\r':
 				case '\n':
-				case '\a':
+				case '\x07':	// Beep/BEL ('\a')
 				case '\b':
 				case '\t':
 				case '\f':
-				case '\x1b':	// ESC
+				case '\x1b':	// ESC ('\e')
 				case '\xff':	// Telnet IAC
 					return true;
 			}
-- 
GitLab