diff -r 320acf077276 -r 9ecc94c4c7f5 includes/render.php --- a/includes/render.php Tue Jun 26 21:03:02 2007 -0400 +++ b/includes/render.php Tue Jun 26 21:49:46 2007 -0400 @@ -597,10 +597,9 @@ $can_do_php = ( $session->get_permissions('php_in_pages') && !$strip_all_php ); - $text = sanitize_html($text, ( !$can_do_php )); - if ( !$can_do_php ) { + $text = sanitize_html($text, true); // If we can't do PHP, we can't do Javascript either. $text = RenderMan::destroy_javascript($text); }