[pLog-svn] r3549 - plog/trunk/class/action

oscar at devel.lifetype.net oscar at devel.lifetype.net
Wed Jun 7 09:59:29 GMT 2006


Author: oscar
Date: 2006-06-07 09:59:28 +0000 (Wed, 07 Jun 2006)
New Revision: 3549

Modified:
   plog/trunk/class/action/addcommentaction.class.php
Log:
fixed issue http://bugs.lifetype.net/view.php?id=938


Modified: plog/trunk/class/action/addcommentaction.class.php
===================================================================
--- plog/trunk/class/action/addcommentaction.class.php	2006-06-07 08:31:31 UTC (rev 3548)
+++ plog/trunk/class/action/addcommentaction.class.php	2006-06-07 09:59:28 UTC (rev 3549)
@@ -78,7 +78,7 @@
             $this->_userEmail = Textfilter::filterAllHTML($this->_request->getValue( "userEmail" ));
             $this->_userUrl   = Textfilter::filterAllHTML($this->_request->getValue( "userUrl" ));
             if( (strlen($this->_userUrl) != 0) &&
-                  (substr($this->_userUrl, 0, 7 ) != "http://" )){
+                  ereg('^https{0,1}://',$this->_userUrl) == false){
                 $this->_userUrl = "http://".$this->_userUrl;
             }
             $this->_userName  = Textfilter::filterAllHTML($this->_request->getValue( "userName" ));



More information about the pLog-svn mailing list