includes/render.php
changeset 133 af0f6ec48de3
parent 91 8079b0288e8e
child 136 f2ee42f026f7
--- a/includes/render.php	Mon Sep 17 11:52:58 2007 -0400
+++ b/includes/render.php	Tue Sep 18 00:30:43 2007 -0400
@@ -72,7 +72,7 @@
     $chartag = $row['char_tag'];
     unset($row); // Free some memory
     
-    if ( preg_match('#^\#redirect \[\[(.+?)\]\]#', $message, $m) && $redir && !isset($_GET['redirect']) || ( isset($_GET['redirect']) && $_GET['redirect'] != 'no' ) )
+    if ( preg_match("#^\#redirect \[\[([^\]\r\n\a\t]+?)\]\]#", $message, $m) && $redir && ( !isset($_GET['redirect']) || ( isset($_GET['redirect']) && $_GET['redirect'] != 'no' ) ) )
     {
       dc_here('render: looks like a redirect page to me...');
       $old = $paths->cpage;