mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-295: Merge fix for incorrect direct comparison against NaN.
This commit is contained in:
@@ -121,7 +121,7 @@ Guacamole.Parser = function() {
|
|||||||
|
|
||||||
// Parse length
|
// Parse length
|
||||||
var length = parseInt(buffer.substring(element_end+1, length_end));
|
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.");
|
throw new Error("Non-numeric character in element length.");
|
||||||
|
|
||||||
// Calculate start of element
|
// Calculate start of element
|
||||||
|
Reference in New Issue
Block a user