diff options
author | Koni Weber | 2007-09-25 15:31:20 +0000 |
---|---|---|
committer | Koni Weber | 2007-09-25 15:31:20 +0000 |
commit | 262fc0bf62ff89f2c9be8f39be8e96adb90b2948 (patch) | |
tree | 5ae5c51efcc51f47f22250a00370ab15d27ea4f1 /itjs/it.js | |
parent | be9859eb1b53a501615a99afe66c330977be9140 (diff) | |
download | itools-262fc0bf62ff89f2c9be8f39be8e96adb90b2948.tar.gz itools-262fc0bf62ff89f2c9be8f39be8e96adb90b2948.tar.bz2 itools-262fc0bf62ff89f2c9be8f39be8e96adb90b2948.zip |
Q() does not fail on quoting undefined values (same behaviour as php)
Diffstat (limited to 'itjs/it.js')
-rw-r--r-- | itjs/it.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -58,7 +58,7 @@ function ED() */ function Q(value) { - return value.toString().replace(/&/g, '&').replace(/"/g, '"').replace(/</g, '<').replace(/>/g, '>'); + return typeof value == "undefined" ? "" : value.toString().replace(/&/g, '&').replace(/"/g, '"').replace(/</g, '<').replace(/>/g, '>'); } /** |