|
From: Paul S. O. <ps...@us...> - 2002-02-20 17:39:06
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv16676
Modified Files:
posting.php
Log Message:
Fix my hilariously dumb mistake in posting allowing unauthed users to post ...
Index: posting.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/posting.php,v
retrieving revision 1.146
retrieving revision 1.147
diff -C2 -r1.146 -r1.147
*** posting.php 18 Feb 2002 12:41:06 -0000 1.146
--- posting.php 20 Feb 2002 17:39:03 -0000 1.147
***************
*** 335,338 ****
--- 335,339 ----
header("Location: " . append_sid("login.$phpEx?redirect=posting.$phpEx&" . $redirect, true));
+ exit;
}
***************
*** 766,769 ****
--- 767,774 ----
$mode = 'reply';
+ }
+ else
+ {
+ $username = ( $post_info['user_id'] == ANONYMOUS && !empty($post_info['post_username']) ) ? $post_info['post_username'] : "";
}
}
|