plugins/SpecialUserPrefs.php
changeset 829 87fcc7175c61
parent 801 eb8b23f11744
child 835 146bc1daf498
equal deleted inserted replaced
828:c5bca53b857a 829:87fcc7175c61
   429         if ( !preg_match('/@([a-z0-9-]+)(\.([a-z0-9-\.]+))?/', $imaddr_msn) && !empty($imaddr_msn) )
   429         if ( !preg_match('/@([a-z0-9-]+)(\.([a-z0-9-\.]+))?/', $imaddr_msn) && !empty($imaddr_msn) )
   430         {
   430         {
   431           $imaddr_msn = "$imaddr_msn@hotmail.com";
   431           $imaddr_msn = "$imaddr_msn@hotmail.com";
   432         }
   432         }
   433         
   433         
   434         if ( substr($homepage, 0, 7) != 'http://' )
   434         if ( !preg_match('#^https?://#', $homepage) )
   435         {
   435         {
   436           $homepage = "http://$homepage";
   436           $homepage = "http://$homepage";
   437         }
   437         }
   438         
   438         
   439         if ( !preg_match('/^http:\/\/([a-z0-9-.]+)([A-z0-9@#\$%\&:;<>,\.\?=\+\(\)\[\]_\/\\\\]*?)$/i', $homepage) )
   439         if ( !preg_match('/^http:\/\/([a-z0-9-.]+)([A-z0-9@#\$%\&:;<>,\.\?=\+\(\)\[\]_\/\\\\]*?)$/i', $homepage) )