Inferno Wrote:
-------------------------------------------------------
> Hi Alex,
>
> I have analyzed their patch and the only thing
> they do is move the meta tags before the title tag
> to prevent any utf-7 injection. I don't think
> browsers ignore the utf-8 specified in the http
> response headers, otherwise there could be tons of
> security issues to exploit :).
>
> + * Make any final alterations to the rendered
> xhtml.
> + */
> +function drupal_final_markup($content) {
> + // Make sure that the charset is always
> specified as the first element of the
> + // head region to prevent encoding-based
> attacks.
> + return preg_replace('/]*>/i', "\$0\n",
> $content, 1);
> +}
> +
> +/**
That's pretty much my thinking as well, but there's always some 0day floating around... :)
----------------------------------------------------------
Don't forget our IRC: irc://irc.irchighway.net/#slackers
[
kuza55.blogspot.com]