Browse Source

Improve sanitization

pull/328/head
SteelWagstaff 4 years ago
parent
commit
3efe4b1420
  1. 6
      page-auth.php

6
page-auth.php

@ -58,7 +58,7 @@ $errors = apply_filters( 'pb_custom_signup_errors', [] );
?> ?>
</head> </head>
<body class="page <?php echo $action; ?>"> <body class="page <?php echo esc_attr( $action ); ?>">
<svg style="display: none;" xmlns="http://www.w3.org/2000/svg"> <svg style="display: none;" xmlns="http://www.w3.org/2000/svg">
<defs> <defs>
<symbol id="icon-pressbooks" fill="currentColor" viewBox="0 0 45 44"> <symbol id="icon-pressbooks" fill="currentColor" viewBox="0 0 45 44">
@ -86,7 +86,7 @@ $errors = apply_filters( 'pb_custom_signup_errors', [] );
</svg> </svg>
<header class="header" role="banner"> <header class="header" role="banner">
<div class="header__brand"> <div class="header__brand">
<a title="<?php echo get_bloginfo( 'name', 'display' ); ?>" href="<?php echo network_home_url(); ?>"> <a title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" href="<?php echo esc_url( network_home_url() ); ?>">
<?php if ( has_custom_logo() ) { ?> <?php if ( has_custom_logo() ) { ?>
<?php <?php
$custom_logo_id = get_theme_mod( 'custom_logo' ); $custom_logo_id = get_theme_mod( 'custom_logo' );
@ -142,7 +142,7 @@ $errors = apply_filters( 'pb_custom_signup_errors', [] );
<span class="dashicons dashicons-visibility" aria-hidden="true"></span> <span class="dashicons dashicons-visibility" aria-hidden="true"></span>
</button> </button>
--> -->
<p class="form--input-description"><a href="<?php echo wp_lostpassword_url(); ?>"><?php esc_html_e( 'Lost your password?', 'pressbooks-aldine' ); ?></a></p> <p class="form--input-description"><a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php esc_html_e( 'Lost your password?', 'pressbooks-aldine' ); ?></a></p>
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php if ( isset( $errors['password_validation_error'] ) ) : ?> <?php if ( isset( $errors['password_validation_error'] ) ) : ?>

Loading…
Cancel
Save