Changeset 1121 for trunk/smf/Sources/Profile.php
- Timestamp:
- 03/29/10 15:37:29 (2 years ago)
- File:
-
- 1 edited
-
trunk/smf/Sources/Profile.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/smf/Sources/Profile.php
r1048 r1121 6 6 * Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com) * 7 7 * =============================================================================== * 8 * Software Version: SMF 1.1.1 0*8 * Software Version: SMF 1.1.11 * 9 9 * Software by: Simple Machines (http://www.simplemachines.org) * 10 10 * Copyright 2006-2009 by: Simple Machines LLC (http://www.simplemachines.org) * … … 562 562 if (strlen(trim($_POST['websiteUrl'])) > 0 && strpos($_POST['websiteUrl'], '://') === false) 563 563 $_POST['websiteUrl'] = 'http://' . $_POST['websiteUrl']; 564 if (strlen($_POST['websiteUrl']) < 8 )564 if (strlen($_POST['websiteUrl']) < 8 || (substr($_POST['websiteUrl'], 0, 7) !== 'http://' && substr($_POST['websiteUrl'], 0, 8) !== 'https://')) 565 565 $_POST['websiteUrl'] = ''; 566 566 } … … 2491 2491 { 2492 2492 $context['smiley_sets'][$i] = array( 2493 'id' => $set,2494 'name' => $set_names[$i],2493 'id' => htmlspecialchars($set), 2494 'name' => htmlspecialchars($set_names[$i]), 2495 2495 'selected' => $set == $context['member']['smiley_set']['id'] 2496 2496 ); 2497 2497 2498 2498 if ($context['smiley_sets'][$i]['selected']) 2499 $context['member']['smiley_set']['name'] = $set_names[$i];2499 $context['member']['smiley_set']['name'] = htmlspecialchars($set_names[$i]); 2500 2500 } 2501 2501
Note: See TracChangeset
for help on using the changeset viewer.
![[infoarena] development](/chrome/site/logo.png)