hi

i send a JS file with drupal and set the mimetype "text/javascript" with drupal_set_header() but "devel" module have a workaround for XML files... :-(((

so - i'm able to extend the XML check now to check for javascript and missuse the "is_xml", but is this realy the best way? It looks more better to have a whitelist for future, isn't it?

Regards
Marc

Comments

marc.bau’s picture

WORKAROUND:

// [line 265]
if (function_exists('drupal_get_headers') && (strstr(drupal_get_headers(), 'xml') || strstr(drupal_get_headers(), 'javascript'))) {
  $is_xml = TRUE;
}
moshe weitzman’s picture

Status: Active » Fixed

fixed. thanks

Anonymous’s picture

Status: Fixed » Closed (fixed)