Changeset 8816
- Timestamp:
- 08/12/2014 02:52:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-classes.php
r8801 r8816 2788 2788 * @return string 2789 2789 */ 2790 public static function pre_validate_filter( $submitted_value ) { 2790 public static function pre_validate_filter( $submitted_value = '' ) { 2791 2792 // Allow empty URL values 2793 if ( empty( $submitted_value ) ) { 2794 return ''; 2795 } 2796 2797 // Run some checks on the submitted value 2791 2798 if ( false === strpos( $submitted_value, ':' ) 2792 2793 2794 && ! preg_match( '/^[a-z0-9-]+?\.php/i', $submitted_value )2799 && substr( $submitted_value, 0, 1 ) !== '/' 2800 && substr( $submitted_value, 0, 1 ) !== '#' 2801 && ! preg_match( '/^[a-z0-9-]+?\.php/i', $submitted_value ) 2795 2802 ) { 2796 2803 $submitted_value = 'http://' . $submitted_value;
Note: See TracChangeset
for help on using the changeset viewer.