Skip to content
Snippets Groups Projects
  • Jared Hancock's avatar
    Tweak JSON attachment parsing for API · 6a51b7f0
    Jared Hancock authored
        * Don't require a content-type, so data:,this is content
          is perfectly allowable. Such content is assumed text/plain
        * Support the charset hint, so
          data:text/plain;charset=iso-8859-1,content here
          will be translated to UTF-8 if the php iconv() function exists.
          Otherwise, content is left intact and assumed by the database to by
          UTF-8 already
    6a51b7f0