Update of /cvs/scoop/scoop/lib/Scoop/Admin
In directory lithium.sabren.com:/tmp/cvs-serv3936/lib/Scoop/Admin
Modified Files:
Tag: scoop_1_2-dev
AdminStories.pm
Log Message:
Same formkey fix as before, but in the 1.2-dev branch. -j
Index: AdminStories.pm
===================================================================
RCS file: /cvs/scoop/scoop/lib/Scoop/Admin/AdminStories.pm,v
retrieving revision 1.154
retrieving revision 1.154.2.1
diff -C2 -d -r1.154 -r1.154.2.1
*** AdminStories.pm 6 Aug 2006 04:22:45 -0000 1.154
--- AdminStories.pm 26 Aug 2006 20:03:04 -0000 1.154.2.1
***************
*** 87,91 ****
# Check the formkey, to prevent duplicate postings
! unless ($S->check_formkey()) {
$error = "Invalid form key. This is probably because you clicked 'Post' or 'Preview' more than once. DO HIT 'BACK'! Make sure you haven't already posted this once, then go ahead and post or preview from this screen.";
$preview = 'Preview';
--- 87,91 ----
# Check the formkey, to prevent duplicate postings
! if ($save && !$S->check_formkey()){
$error = "Invalid form key. This is probably because you clicked 'Post' or 'Preview' more than once. DO HIT 'BACK'! Make sure you haven't already posted this once, then go ahead and post or preview from this screen.";
$preview = 'Preview';