GUACAMOLE-295: Merge fix for incorrect direct comparison against NaN.
This commit is contained in:
commit
0bec63219c
1 file changed
+1
-1
@@ -121,7 +121,7 @@ Guacamole.Parser = function() {
|
||||
|
||||
// Parse length
|
||||
var length = parseInt(buffer.substring(element_end+1, length_end));
|
||||
if (length == NaN)
|
||||
if (isNaN(length))
|
||||
throw new Error("Non-numeric character in element length.");
|
||||
|
||||
// Calculate start of element
|
||||
|
||||
Reference in new issue
Block a user