wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r16848: LJSUP-6258

Committer: gprochaev
LJSUP-6258

U   trunk/htdocs/manage/subscriptions/unsubscribe.bml
Modified: trunk/htdocs/manage/subscriptions/unsubscribe.bml
===================================================================
--- trunk/htdocs/manage/subscriptions/unsubscribe.bml	2010-06-21 08:34:13 UTC (rev 16847)
+++ trunk/htdocs/manage/subscriptions/unsubscribe.bml	2010-06-21 08:35:46 UTC (rev 16848)
@@ -15,9 +15,9 @@
 my $user     = $GET{'user'};
 my $timest   = $GET{'timest'} || 0;
 my $subs_id  = $GET{'subs_id'};
-my $hash     = $GET{'crc'};
+my $hash     = $GET{'hash'};
 
-my $check_crc = md5_hex ($timest, $user, $subs_id, $LJ::ESN_UNSUBSCR_SECRET_CODE) eq $hash;
+my $check_crc = md5_hex ($timest, $user, $subs_id, $LJ::ESN_UNSUBSCR_SECRET_CODE) eq $hash ? 1 : 0;
 
 my $ret = '';
 

Tags: bml, livejournal, wisest-owl
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments