[Openupload-svn-update] SF.net SVN: openupload:[44] trunk/plugins/password.inc.php
Status: Beta
Brought to you by:
tsdogs
|
From: <ts...@us...> - 2008-10-21 18:11:07
|
Revision: 44
http://openupload.svn.sourceforge.net/openupload/?rev=44&view=rev
Author: tsdogs
Date: 2008-10-21 18:11:02 +0000 (Tue, 21 Oct 2008)
Log Message:
-----------
check if the password was not set then ignore it
Modified Paths:
--------------
trunk/plugins/password.inc.php
Modified: trunk/plugins/password.inc.php
===================================================================
--- trunk/plugins/password.inc.php 2008-10-18 13:45:17 UTC (rev 43)
+++ trunk/plugins/password.inc.php 2008-10-21 18:11:02 UTC (rev 44)
@@ -27,7 +27,7 @@
}
function downloadRequest($finfo,$acl) {
- if ($finfo['password']!=crypt("",$finfo['password'])) {
+ if (($finfo['password']!='') and ($finfo['password']!=crypt("",$finfo['password'])) ) {
$this->display('downloadRequest');
return false;
}
@@ -37,7 +37,7 @@
function downloadConfirm($finfo,$acl) {
global $_POST;
- if ($finfo['password']!=crypt("",$finfo['password'])) {
+ if (($finfo['password']!='') and ($finfo['password']!=crypt("",$finfo['password'])) ) {
$result = $finfo['password']==crypt($_POST['protect'],$finfo['password']);
if (!$result) app()->error(tr('Wrong password!'));
return $result;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|