- Clarify utf-7 exploit in drupal_set_header()
parent
33821f6907
commit
fd13781ee1
|
@ -128,6 +128,9 @@ function drupal_clear_path_cache() {
|
|||
|
||||
/**
|
||||
* Set an HTTP response header for the current page.
|
||||
*
|
||||
* Note: when sending a Content-Type header, always include a 'charset' type
|
||||
* too. This is necessary to avoid security bugs (e.g. UTF-7 XSS).
|
||||
*/
|
||||
function drupal_set_header($header = NULL) {
|
||||
// We use an array to guarantee there are no leading or trailing delimiters.
|
||||
|
|
Loading…
Reference in New Issue