dybskiy/redactor-js — pull request #26 by samccone (2012-10-09 23:02:56+00:00)
Title: handle case when value is not a string

...

uploadFields: {
'foo': true,

..

if you pass something like this is breaks the plugin because you are trying to call indexOf on a datatype... which it does not support ... so here is a fix