Skip to content

Commit

Permalink
Update profile.php
Browse files Browse the repository at this point in the history
Remove check for Puny URL entirely, because it is already being filtered through the "url" filter. Removed some unneeded white lines as well.
  • Loading branch information
jissereitsma committed Jan 15, 2015
1 parent a2000d7 commit 649282c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions plugins/user/profile/profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,19 +344,11 @@ public function onContentPrepareForm($form, $data)
*/
public function onUserBeforeSave($user, $isnew, $data)
{
// Convert website url to punycode
if (!empty($data['profile']['website']))
{
$data['profile']['website'] = JStringPunycode::urlToPunycode($data['profile']['website']);
}

// Check that the date is valid.
if (!empty($data['profile']['dob']))
{
try
{


$date = new JDate($data['profile']['dob']);
$this->date = $date->format('Y-m-d');
}
Expand Down

0 comments on commit 649282c

Please sign in to comment.