[pLog-svn] r5923 - plugins/branches/lifetype-1.2/authimage/class/security
mark at devel.lifetype.net
mark at devel.lifetype.net
Mon Sep 10 09:00:10 EDT 2007
Author: mark
Date: 2007-09-10 09:00:10 -0400 (Mon, 10 Sep 2007)
New Revision: 5923
Modified:
plugins/branches/lifetype-1.2/authimage/class/security/authimagefilter.class.php
Log:
Delete the image file to prevent user use the same auhtimage to post the comment again and again.
Modified: plugins/branches/lifetype-1.2/authimage/class/security/authimagefilter.class.php
===================================================================
--- plugins/branches/lifetype-1.2/authimage/class/security/authimagefilter.class.php 2007-09-08 08:02:20 UTC (rev 5922)
+++ plugins/branches/lifetype-1.2/authimage/class/security/authimagefilter.class.php 2007-09-10 13:00:10 UTC (rev 5923)
@@ -63,7 +63,10 @@
$locale = $blogInfo->getLocale();
$result = new PipelineResult( false, AUTHIMAGE_FILTER_MATCH_FOUND, $locale->tr("error_authimage_code") );
return $result;
- }
+ } else {
+ // delete the tempFile to prevent the user use the same authimage code to post comment again
+ File::delete( $tempFile );
+ }
// if everything went fine, we can say so by returning
// a positive PipelineResult object
More information about the pLog-svn
mailing list