Changeset 10917
- Timestamp:
- 04/21/2021 05:26:06 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-bad-request.php
r10529 r10917 74 74 75 75 if ( isset( $must_be_num[ $field ] ) && ! empty( $vars[ $field ] ) && ! is_numeric( $vars[ $field ] ) ) { 76 77 // Allow the `p` variable to contain `p=12345/`: https://bbpress.trac.wordpress.org/ticket/3424 78 if ( 'p' === $field && ( intval( $vars[ $field ] ) . '/' === $vars[ $field ] ) ) { 79 continue; 80 } 81 76 82 die_bad_request( "non-numeric $field in $ref" ); 77 83 }
Note: See TracChangeset
for help on using the changeset viewer.