Repository: incubator-guacamole-client
Updated Branches:
  refs/heads/master 1c0ee41d0 -> 0bec63219


GUACAMOLE-295: Fix an incorrect comparison with NaN.


Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/c4dfd962
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/c4dfd962
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/c4dfd962

Branch: refs/heads/master
Commit: c4dfd9626b46d9a91d9aab30b82a8e4080354933
Parents: 7fd7035
Author: Chris Gavin <[email protected]>
Authored: Sun May 7 11:04:12 2017 +0100
Committer: Chris Gavin <[email protected]>
Committed: Sun May 7 19:07:26 2017 +0100

----------------------------------------------------------------------
 guacamole-common-js/src/main/webapp/modules/Parser.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/c4dfd962/guacamole-common-js/src/main/webapp/modules/Parser.js
----------------------------------------------------------------------
diff --git a/guacamole-common-js/src/main/webapp/modules/Parser.js 
b/guacamole-common-js/src/main/webapp/modules/Parser.js
index 2be6fed..0f6066e 100644
--- a/guacamole-common-js/src/main/webapp/modules/Parser.js
+++ b/guacamole-common-js/src/main/webapp/modules/Parser.js
@@ -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

Reply via email to