We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 612f563 commit 83e476bCopy full SHA for 83e476b
mu-plugins/osi-api/osi-api.php
@@ -401,9 +401,9 @@ public function handle_redirects() {
401
402
if ( is_wp_error( $response ) ) {
403
status_header( 404 );
404
- echo wp_json_encode( array( 'error' => $response->get_error_message() ) );
+ echo wp_json_encode( array( 'error' => esc_html( $response->get_error_message() ) ) );
405
} else {
406
- status_header( $response->get_status() );
+ status_header( esc_html( $response->get_status() ) );
407
echo wp_json_encode( $response->get_data() );
408
}
409
exit;
@@ -527,4 +527,4 @@ public function get_license_schema(): array {
527
528
529
530
-add_action( 'init', array( OSI_API::class, 'init' ), 0 );
+add_action( 'init', array( OSI_API::class, 'init' ), 0 );
0 commit comments