PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 8.6
Jetpack – WP Security, Backup, Speed, & Growth v8.6
16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 All 501 releases
← All changes | modules/subscriptions.php +2 -2 8.5.38.6 View file →
@@ -612,9 +612,9 @@
612 612 if ( is_user_logged_in() ) {
613 613 check_admin_referer( 'blogsub_subscribe_' . get_current_blog_id() );
614 614 }
615 615
616 - if ( empty( $_REQUEST['email'] ) )
616 + if ( empty( $_REQUEST['email'] ) || ! is_string( $_REQUEST['email'] ) )
617 617 return false;
618 618
619 619 $redirect_fragment = false;
620 620 if ( isset( $_REQUEST['redirect_fragment'] ) ) {
@@ -619,9 +619,9 @@
619 619 $redirect_fragment = false;
620 620 if ( isset( $_REQUEST['redirect_fragment'] ) ) {
621 621 $redirect_fragment = preg_replace( '/[^a-z0-9_-]/i', '', $_REQUEST['redirect_fragment'] );
622 622 }
623 - if ( !$redirect_fragment ) {
623 + if ( !$redirect_fragment || ! is_string( $redirect_fragment ) ) {
624 624 $redirect_fragment = 'subscribe-blog';
625 625 }
626 626
627 627 $subscribe = Jetpack_Subscriptions::subscribe(