Skip to content

Commit 540fb25

Browse files
author
Konrad Karpieszuk
committed
escaped html attributes
1 parent 846c6f7 commit 540fb25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/EditorBox/FrontEnd.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private function render_add_image() {
6363
?>
6464
<form id="editor_box_add_image" method="post" enctype="multipart/form-data">
6565
<?php wp_nonce_field( 'editor_box_img_nonce' ); ?>
66-
<input type="file" id="ebox_image_select" name="<?php echo IMGINPUT; ?>" id="<?php echo IMGINPUT; ?>">
66+
<input type="file" id="ebox_image_select" name="<?php echo esc_attr( IMGINPUT ); ?>" id="<?php echo esc_attr( IMGINPUT ); ?>">
6767

6868
</form>
6969
<?php
@@ -78,7 +78,7 @@ function render_categories() {
7878
<label for="editor_box_categories"><?php _e( 'Category', 'editor_box' ); ?></label>
7979
<select name="editor_box_categories" class="one_third">
8080
<?php foreach ( $categories as $category ) : ?>
81-
<option value="<?php echo $category->term_id; ?>">
81+
<option value="<?php echo esc_attr( $category->term_id ); ?>">
8282
<?php echo esc_html($category->name ); ?>
8383
</option>
8484
<?php endforeach; ?>

0 commit comments

Comments
 (0)