GUACAMOLE-295: Fix an incorrect comparison with NaN.

This commit is contained in:
Chris Gavin committed 2017-05-07 19:07:26 +01:00
1 parent 7fd7035a47
commit c4dfd9626b
1 file changed
+1 -1
@@ -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