WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/04/2009 09:28:42 PM (11 years ago)
Author:
westi
Message:

Ensure that users_can_register is sanitised correctly. See #10454 props josephscott.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r11738 r11772  
    23522352        case 'comments_per_page':
    23532353        case 'thread_comments_depth':
    2354             $value = abs((int) $value);
     2354        case 'users_can_register':
     2355            $value = absint( $value );
    23552356            break;
    23562357
Note: See TracChangeset for help on using the changeset viewer.