Closed (fixed)
Project:
quicktags
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Sep 2006 at 01:12 UTC
Updated:
24 Oct 2006 at 16:00 UTC
This module sends javascript code to the browser (when "?q=quicktags" is accessed), but this javascript is sent as "text/html". The following line should be added to quicktags_javascript():
drupal_set_header('Content-Type: text/javascript; charset=utf-8');
Comments
Comment #1
Bèr Kessels commentedI am not too famil!iar with this Headings stuff. Can you give a bit more background? Does the current system break anywhere?
Comment #2
marc.bauif the file is a javascript file you must set this "MIME Type" header! This will not break anything! After this change it is technical correct... without it is not.
Comment #3
marc.bauany if you don't set the mimetype it will break in some browsers... i saw this in shit IE for e.g....
Comment #4
mooffie commentedSafari is one example:
http://nubyonrails.com/articles/2006/02/01/rjs-and-content-type-header
Comment #5
Bèr Kessels commentedFixed in 4.7 and HEAD.
Comment #6
(not verified) commented