Skip to content
Browse files

Fixed the error of the profile with validation of the LinkedIn field.

  • Loading branch information...
VyacheslavKasyanov VyacheslavKasyanov
VyacheslavKasyanov authored and VyacheslavKasyanov committed Jun 16, 2015
1 parent 5a23286 commit 32cd0e34f57baa60afa9a53f44a2fc7144c4ec61
Showing with 2 additions and 1 deletion.
  1. +2 −1 profile.php
@@ -986,7 +986,8 @@ function extract_elements($allowed_elements)
$errors[] = $lang_profile['Bad Twitter'];
//check LinkedIn for validity
if (!preg_match('#https?://(www\.)?', $form['linkedin']))
if (strpos($form['linkedin'], 'http://') === 0 || strpos($form['linkedin'], 'https://') === 0)
if (!preg_match('#https?://(www\.)?', $form['linkedin']))
$errors[] = $lang_profile['Bad LinkedIn'];
// Add http:// if the LinkedIn doesn't contain it or https:// already

0 comments on commit 32cd0e3

Please sign in to comment.
You can’t perform that action at this time.