includes/render.php
changeset 24 9ecc94c4c7f5
parent 21 663fcf528726
child 35 efae425e9b98
--- 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);
     }