Changeset 14488
- Timestamp:
- 07/24/2025 01:15:10 AM (11 months ago)
- Location:
- sites/trunk/api.wordpress.org/public_html/core
- Files:
-
- 2 edited
-
credits/index.php (modified) (1 diff)
-
serve-happy/1.0/include.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/core/credits/index.php
r8349 r14488 40 40 } 41 41 42 if ( version_compare( $version, '3.2', '<' ) ) { 42 if ( 43 ! is_string( $version ) || 44 version_compare( $version, '3.2', '<' ) || 45 ( isset( $_GET['locale'] ) && ! is_string( $_GET['locale'] ) ) 46 ) { 43 47 header( 'HTTP/1.0 400 Bad Request', true, 400 ); 44 48 die( 'Bad request.' ); -
sites/trunk/api.wordpress.org/public_html/core/serve-happy/1.0/include.php
r8065 r14488 11 11 $php_version = false; 12 12 // PHP versions on hosts vary and include extra data, we're only interested in the major core PHP version component: 13 if ( preg_match( '!^([0-9]+\.([0-9]+\.)?[0-9]+)!', $request['php_version'], $m ) ) { 13 if ( 14 is_string( $request['php_version'] ) && 15 preg_match( '!^([0-9]+\.([0-9]+\.)?[0-9]+)!', $request['php_version'], $m ) 16 ) { 14 17 $php_version = $m[1]; 15 18 }
Note: See TracChangeset
for help on using the changeset viewer.