Changeset 9561 for sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-notifications-http-server.php
- Timestamp:
- 03/03/2020 01:15:37 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-notifications-http-server.php
r2028 r9561 16 16 function serve( $method, $secret, $arguments ) { 17 17 if ( ! method_exists( 'Trac_Notifications_DB', $method ) || $method[0] === '_' ) { 18 header( ( $_SERVER["SERVER_PROTOCOL"] ?: 'HTTP/1.0' ) . ' 404 Method Not Found', true, 404 ); 18 19 exit; 19 20 } 20 21 21 if ( $secret !== $this->secret ) { 22 if ( ! hash_equals( $this->secret, $secret ) ) { 23 header( ( $_SERVER["SERVER_PROTOCOL"] ?: 'HTTP/1.0' ) . ' 403 Forbidden', true, 403 ); 22 24 exit; 23 25 }
Note: See TracChangeset
for help on using the changeset viewer.