summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-03-10 17:06:48 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-03-10 17:06:48 +0000
commite4a6ff42700316af10b9eac09e68292a3f74347a (patch)
treea01fe7a94ce3a2df806aea725aa6f0326b1d2136 /includes
parent3ead560368255d17a43f8b14df554a776417ec03 (diff)
downloadbrdo-e4a6ff42700316af10b9eac09e68292a3f74347a.tar.gz
brdo-e4a6ff42700316af10b9eac09e68292a3f74347a.tar.bz2
- #53368: Output stricter (IE5-compatible) JSON
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index f87d9b6c5..ef000ecf5 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -1208,7 +1208,7 @@ function drupal_to_js($var) {
case 'object':
$output = array();
foreach ($var as $k => $v) {
- $output[] = $k .': '. drupal_to_js($v);
+ $output[] = drupal_to_js(strval($k)) .': '. drupal_to_js($v);
}
return '{ '. implode(', ', $output) .' }';
default: