Escape input values when importing

This commit is contained in:
Brian Miyaji
2015-10-05 12:26:31 +11:00
parent 46426eea17
commit 0b8edb70a3

View File

@@ -152,7 +152,7 @@ if ( class_exists( 'WP_Importer' ) ) {
<tr> <tr>
<?php $index = 0; foreach ( $this->columns as $key => $label ): $value = sp_array_value( $row, $index ); ?> <?php $index = 0; foreach ( $this->columns as $key => $label ): $value = sp_array_value( $row, $index ); ?>
<td> <td>
<input type="text" class="widefat" value="<?php echo $value; ?>" name="sp_import[]"> <input type="text" class="widefat" value="<?php echo esc_attr( $value ); ?>" name="sp_import[]">
</td> </td>
<?php $index ++; endforeach; ?> <?php $index ++; endforeach; ?>
<td class="sp-actions-column"> <td class="sp-actions-column">