Fixed! This link will look like it was censored, but will still work:
http://www.onefootdown.com/2011/10/20/25...sc-trojans
Technical details for anyone who cares.
(1) I modified the censor function so that anything in < > is not censored. By the time the function is applied, any literal < > that the user typed in has been escaped to < >, so this doesn't provide a way for users to prevent censorship. It just prevents mangling of html tags and their arguments, such as link target URLs.
(2) The preview view parses bbcode and autolinks URLs first, then censors, so the above change worked. But displaying a posted message was censoring first, then parsing bbcode/autolinking, so it didn't work. Yay for consistency. I swapped a few lines of code around to make my change work in both cases.
http://www.onefootdown.com/2011/10/20/25...sc-trojans
Technical details for anyone who cares.
(1) I modified the censor function so that anything in < > is not censored. By the time the function is applied, any literal < > that the user typed in has been escaped to < >, so this doesn't provide a way for users to prevent censorship. It just prevents mangling of html tags and their arguments, such as link target URLs.
(2) The preview view parses bbcode and autolinks URLs first, then censors, so the above change worked. But displaying a posted message was censoring first, then parsing bbcode/autolinking, so it didn't work. Yay for consistency. I swapped a few lines of code around to make my change work in both cases.

