Skip to content

Commit b4c8ac7

Browse files
kinabalujoshcanhelp
authored andcommitted
fix for XSS against attack
1 parent 3be28f8 commit b4c8ac7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WP_Auth0.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,8 @@ function wp_auth0_filter_login_override_url( $wp_login_url ) {
635635
*/
636636
function wp_auth0_filter_login_override_form() {
637637
if ( wp_auth0_can_show_wp_login_form() && isset( $_REQUEST['wle'] ) ) {
638-
printf( '<input type="hidden" name="wle" value="%s" />', $_REQUEST['wle'] );
638+
$wle_encoded = esc_attr($_REQUEST['wle']);
639+
printf( '<input type="hidden" name="wle" value="%s" />', $wle_encoded );
639640
}
640641
}
641642

0 commit comments

Comments
 (0)