Fixed https urls not allowed in user_extra CPs; fixed nonworking password reset in admin CP
authorDan
Mon, 16 Feb 2009 13:01:35 -0500
changeset 829 87fcc7175c61
parent 828 c5bca53b857a
child 830 79fb483807f6
Fixed https urls not allowed in user_extra CPs; fixed nonworking password reset in admin CP
plugins/SpecialUserPrefs.php
--- a/plugins/SpecialUserPrefs.php	Mon Jan 26 11:45:48 2009 -0500
+++ b/plugins/SpecialUserPrefs.php	Mon Feb 16 13:01:35 2009 -0500
@@ -431,7 +431,7 @@
           $imaddr_msn = "$imaddr_msn@hotmail.com";
         }
         
-        if ( substr($homepage, 0, 7) != 'http://' )
+        if ( !preg_match('#^https?://#', $homepage) )
         {
           $homepage = "http://$homepage";
         }