Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
fixes #31: Closure Notice - Security: Fio bank - transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
davidulus committed Aug 14, 2021
1 parent ff0469b commit ceca794
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugin/src/Accounts/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ public function TokenFieldContent( \WP_Post $post ) {
?>
<h2><?php _e( 'Zadejte 64 znakový token z internetového bankovnictví', 'fio-bank-transactions' ); ?>:</h2>
<input type="text" name="<?php echo FIOTRANSACTIONS_NAME . '_token'; ?>"
value="<?php echo get_post_meta( $post->ID, FIOTRANSACTIONS_NAME . '_token', true ); ?>"
value="<?php echo esc_attr( get_post_meta( $post->ID, FIOTRANSACTIONS_NAME . '_token', true ) ); ?>"
placeholder="<?php _e( 'token', 'fio-bank-transactions' ); ?>"
class="regular-text"
style="width: 100%;"
pattern="[a-zA-Z0-9]{64}"
required="required"/>
<p><a href="http://napoveda.fapi.cz/article/144-jak-vygenerovat-token-ve-fio-bance"
target="_blank"><?php _e( 'Jak získám token?', 'fio-bank-transactions' ); ?></a></p>
target="_blank"><?php _e( 'Jak získám token?', 'fio-bank-transactions' ); ?></a></p>
<?php
}

Expand Down
4 changes: 2 additions & 2 deletions plugin/src/Accounts/Columns.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public function lastModifiedAdminColumnContent( string $columnName, int $postId
$modifiedDate = sprintf( _x( 'Před %s', '%s = human-readable time difference', 'fio-bank-transactions' ), human_time_diff( strtotime( $post->post_modified ), current_time( 'timestamp' ) ) );
$modifiedAuthor = get_the_modified_author();

echo $modifiedDate;
echo esc_html( $modifiedDate );
echo '<br>';
echo '<strong>' . $modifiedAuthor . '</strong>';
echo '<strong>' . esc_html( $modifiedAuthor ) . '</strong>';

}

Expand Down

0 comments on commit ceca794

Please sign in to comment.