--- 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;