Permalink
Browse files

Closes #9

  • Loading branch information...
1 parent c7b5bad commit 125e1c267e77513c859cdc66dea1d9a3543c0bb3 @eligrey committed Jul 3, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 pmxdr-host.js
View
@@ -71,6 +71,9 @@ if (!JSON.stringify) {
* @return string clean
*/
function cleanHeader(dirty) {
+ if (typeof dirty !== "string") {
+ return "";
+ }
var clean;
clean = dirty.replace(/[ \n\r\t]/g, '').toUpperCase();
return clean;

0 comments on commit 125e1c2

Please sign in to comment.