mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 18:32:00 +00:00

r=av r=edburns@acm.org sr=waterson bug= 56019 /////////////////////////////////////////////////////////////////////////////// // Currently, in the MIME type info passed in by plugin, a ';' is used as the // separator of two MIME types, and also the sparator of a version in one MIME // type. For example: // "application/x-java-applet;version1.3::java(TM) plugin;application/x-java- // applet...". // The ambiguity of ';' causes the browser fail to parse the MIME types // correctly. // // This method parses the MIME type input, and replaces the MIME type // separators with '|' to eliminate the ambiguity of ';'. (The Windows version // also uses '|' as the MIME type separator.) // // Input format: "...type[;version]:[extension]:[desecription];..." // Output format: "...type[;version]:[extension]:[desecription]|..." // static void SetMIMETypeSeparator(char *minfo) {