index.php
changeset 391 85f91037cd4f
parent 383 1030864dc319
child 408 7ecbe721217c
--- a/index.php	Tue Jan 29 17:29:08 2008 -0500
+++ b/index.php	Tue Jan 29 23:15:44 2008 -0500
@@ -198,6 +198,7 @@
     case 'viewsource':
       $template->header();
       $text = RenderMan::getPage($paths->page_id, $paths->namespace, 0, false, false, false, false);
+      $text = htmlspecialchars($text);
       echo '
         <form action="'.makeUrl($paths->page, 'do=edit').'" method="post">
         <br />