aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/file-upload.js
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-01-13 11:03:58 +0100
committerLukas Reschke <lukas@owncloud.com>2015-01-13 11:08:18 +0100
commitf0ac8a278ac8a6e07f7f4efb5455c4fb87996953 (patch)
treebc476843411cc1a56ff7a26e45653abaa769ef6e /apps/files/js/file-upload.js
parent5f7c115dfee58db718d0887562a5a8df8ccc7279 (diff)
downloadnextcloud-server-f0ac8a278ac8a6e07f7f4efb5455c4fb87996953.tar.gz
nextcloud-server-f0ac8a278ac8a6e07f7f4efb5455c4fb87996953.zip
Use json_encode on string
It's better to encode the string to prevent possible (yet unknown) bugs in combination with PHP's type juggling. Previously the boolean statements evaluated to either an empty string (false) or a not empty one (true, then it was 1). Not it always evaluates to false or true. This also removes a stray - that was not intended there but shouldn't have produced any bugs. Just to increase readability. Thanks @nickvergessen for spotting. Addresses https://github.com/owncloud/core/pull/13235/files#r22852319
Diffstat (limited to 'apps/files/js/file-upload.js')
0 files changed, 0 insertions, 0 deletions