Changeset 9926 for sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-bad-request.php
- Timestamp:
- 05/26/2020 12:25:00 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-bad-request.php
r9925 r9926 75 75 die_bad_request( "Missing referer or user-agent" ); 76 76 } 77 // Jetpack Contact forms can have array fields, but we have none on WordPress.org78 77 foreach ( $_REQUEST as $k => $v ) { 79 if ( ! is_scalar( $v ) ) {80 die_bad_request( "non-scalar input to Jetpack Contact Form" );81 }82 78 if ( 'sample@email.tst' === $v ) { 83 79 die_bad_request( "sample@email.tst input to Jetpack Contact Form" ); … … 129 125 ! defined( 'XMLRPC_REQUEST' ) && ! defined( 'REST_REQUEST' ) 130 126 ) { 127 // Bare header, we don't need Block assets. 128 remove_all_actions( 'wp_head' ); 129 131 130 status_header( 400 ); 132 131 $header_set_for_403 = true;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)