Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 uid=99(nobody) gid=98(nobody) groups=98(nobody) Safe-mode: OFF (not secure) /usr/local/webmail2/plugins/html_mail/htmlarea/plugins/Filter/filters/ drwxr-xr-x | |
| Viewing file: Select action/file-type: Word = function(html) {
// Remove HTML comments
html = html.replace(/<!--[\w\s\d@{}:.;,'"%!#_=&|?~()[*+\/\-\]]*-->/gi, "" );
html = html.replace(/<!--[^\0]*-->/gi, '');
// Remove all HTML tags
html = html.replace(/<\/?\s*HTML[^>]*>/gi, "" );
// Remove all BODY tags
html = html.replace(/<\/?\s*BODY[^>]*>/gi, "" );
// Remove all META tags
html = html.replace(/<\/?\s*META[^>]*>/gi, "" );
// Remove all SPAN tags
html = html.replace(/<\/?\s*SPAN[^>]*>/gi, "" );
// Remove all FONT tags
html = html.replace(/<\/?\s*FONT[^>]*>/gi, "");
// Remove all IFRAME tags.
html = html.replace(/<\/?\s*IFRAME[^>]*>/gi, "");
// Remove all STYLE tags & content
html = html.replace(/<\/?\s*STYLE[^>]*>(.|[\n\r\t])*<\/\s*STYLE\s*>/gi, "" );
// Remove all TITLE tags & content
html = html.replace(/<\s*TITLE[^>]*>(.|[\n\r\t])*<\/\s*TITLE\s*>/gi, "" );
// Remove javascript
html = html.replace(/<\s*SCRIPT[^>]*>[^\0]*<\/\s*SCRIPT\s*>/gi, "");
// Remove all HEAD tags & content
html = html.replace(/<\s*HEAD[^>]*>(.|[\n\r\t])*<\/\s*HEAD\s*>/gi, "" );
// Remove Class attributes
html = html.replace(/<\s*(\w[^>]*) class=([^ |>]*)([^>]*)/gi, "<$1$3") ;
// Remove Style attributes
html = html.replace(/<\s*(\w[^>]*) style="([^"]*)"([^>]*)/gi, "<$1$3") ;
// Remove Lang attributes
html = html.replace(/<\s*(\w[^>]*) lang=([^ |>]*)([^>]*)/gi, "<$1$3") ;
// Remove XML elements and declarations
html = html.replace(/<\\?\?xml[^>]*>/gi, "") ;
// Remove Tags with XML namespace declarations: <o:p></o:p>
html = html.replace(/<\/?\w+:[^>]*>/gi, "") ;
// Replace the
html = html.replace(/ /, " " );
// Transform <p><br /></p> to <br>
//html = html.replace(/<\s*p[^>]*>\s*<\s*br\s*\/>\s*<\/\s*p[^>]*>/gi, "<br>");
html = html.replace(/<\s*p[^>]*><\s*br\s*\/?>\s*<\/\s*p[^>]*>/gi, "<br>");
// Remove <P>
html = html.replace(/<\s*p[^>]*>/gi, "");
// Replace </p> with <br>
html = html.replace(/<\/\s*p[^>]*>/gi, "<br>");
// Remove any <br> at the end
html = html.replace(/(\s*<br>\s*)*$/, "");
html = html.trim();
return html;
}; |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0178 ]-- |