From 4cf6b17ba359e35844b43696c4e71193440ec8ac Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 27 Apr 2011 17:28:45 +1000 Subject: [PATCH] SF Bug #3141226 - Password change/encrypted upon modification --- lib/PageRender.php | 2 +- lib/functions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PageRender.php b/lib/PageRender.php index 53f8f94..745387a 100644 --- a/lib/PageRender.php +++ b/lib/PageRender.php @@ -288,7 +288,7 @@ class PageRender extends Visitor { $vals = $this->get('AutoPost',$attribute,$i); } - if (! $vals) + if (! $vals || $vals == $attribute->getValues()) return; $attribute->clearValue(); diff --git a/lib/functions.php b/lib/functions.php index 6ccd0d0..08e4299 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -2082,8 +2082,8 @@ function password_types() { debug_log('Entered (%%)',1,0,__FILE__,__LINE__,__METHOD__,$fargs); return array( - 'blowfish'=>'blowfish', ''=>'clear', + 'blowfish'=>'blowfish', 'crypt'=>'crypt', 'ext_des'=>'ext_des', 'md5'=>'md5',