2

I am trying to use the jbimages plugin for tinymce, and its loading and okay except that when the script tries to upload images, I get the following error:

Disallowed Key Characters.

What is that, and how do I fix it?

Thariama
  • 50,002
  • 13
  • 138
  • 166
Chud37
  • 4,907
  • 13
  • 64
  • 116

1 Answers1

1

I fixed this issue by remarking

function _clean_input_keys($str)
    {
        if ( ! preg_match("/^[a-z0-9:_\/-]+$/i", $str))
        {
            //REMARK THIS
            //exit('Disallowed Key Characters.');
        }
        // Clean UTF-8 if supported
        if (UTF8_ENABLED === TRUE)
        {
            $str = $this->uni->clean_string($str);
        }
        return $str;
    }

in

jbimages/ci/system/core/input.php
kavehmb
  • 9,822
  • 1
  • 19
  • 22