Skip to content

Commit 6b9d74f

Browse files
authored
Merge pull request #33 from circuscode/develop
Version 0.19
2 parents 9fa8f64 + b6cc96b commit 6b9d74f

11 files changed

+28
-12
lines changed

hdfys_display.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function hdfys() {
3232
$line=hdfys_get_anything();
3333

3434
// Output
35-
echo "<p class='admin-hdfys'>".$line."</p>";
35+
echo "<p class='admin-hdfys'>".esc_html($line)."</p>";
3636
}
3737
}
3838
add_action( 'admin_notices', 'hdfys' );

hdfys_gutenberg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function hdfys_gutenberg_block() {
3434
$gutenberg_line = hdfys_get_anything();
3535

3636
// Add HTML Markup
37-
$gutenberg_output = '<p class="hdfys gutenberg-block">'. $gutenberg_line .'</p>';
37+
$gutenberg_output = '<p class="hdfys gutenberg-block">'.esc_html($gutenberg_line).'</p>';
3838

3939
// Process Filter
4040
$gutenberg_output=apply_filters( 'hdfys_output_filter', $gutenberg_output );

hdfys_installation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function hdfys_activate () {
2626
/* Initialize Settings */
2727
add_option('hdfys_activated',"1");
2828
add_option('hdfys_song',"");
29-
add_option('hdfys_version', "18");
29+
add_option('hdfys_version', "19");
3030
add_option('widget_hdfys_widget');
3131
add_option('hdfys_admin_lyric',"1");
3232
add_option('hdfys_text_updated',"0");

hdfys_settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function hdfys_options() {
5353
*/
5454

5555
function hdfys_options_display_songtext() {
56-
echo '<textarea style="width:600px;height:400px;" class="regular-text" type="text" name="hdfys_song" id="hdfys_song">'. get_option('hdfys_song') .'</textarea>';
56+
echo '<textarea style="width:600px;height:400px;" class="regular-text" type="text" name="hdfys_song" id="hdfys_song">'.esc_textarea( get_option('hdfys_song')) .'</textarea>';
5757
}
5858

5959
/**

hdfys_shortcode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
function hdfys_shortcode() {
2727
$shortcode_line=hdfys_get_anything();
28-
$hdfys_shortcode_output= '<p class="hdfys shortcode">'. $shortcode_line .'</p>';
28+
$hdfys_shortcode_output= '<p class="hdfys shortcode">'.esc_html($shortcode_line).'</p>';
2929
$hdfys_shortcode_output=apply_filters( 'hdfys_output_filter', $hdfys_shortcode_output );
3030
return $hdfys_shortcode_output;
3131
}

hdfys_templatetag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
function hello_dolly_for_your_song() {
2323
$hdfys_template_tag_line = hdfys_get_anything();
24-
$hdfys_template_tag_output='<div class="hdfys templatetag">'. $hdfys_template_tag_line .'</div>';
24+
$hdfys_template_tag_output='<div class="hdfys templatetag">'. esc_html($hdfys_template_tag_line) .'</div>';
2525
$hdfys_template_tag_output=apply_filters( 'hdfys_output_filter', $hdfys_template_tag_output );
2626
echo $hdfys_template_tag_output;
2727
}

hdfys_update.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ function hdfys_update () {
7777
if($hdfys_previous_version==17) {
7878
update_option('hdfys_version','18');
7979
}
80+
/* Update Process Version 0.19 */
81+
if($hdfys_previous_version==18) {
82+
update_option('hdfys_version','19');
83+
}
8084

8185
}
8286
add_action( 'plugins_loaded', 'hdfys_update' );

hdfys_widget.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ public function widget( $args, $instance ) {
3939
echo '<aside class="widget hdfys">';
4040
echo '<h3 class="widget-title hdfys">';
4141
if ( ! empty( $title ) )
42-
echo $title;
42+
echo esc_html($title);
4343
echo '</h3>';
44-
echo '<p class="widget-hdfys">'.$widget_line.'</p>';
44+
echo '<p class="widget-hdfys">'.esc_html($widget_line).'</p>';
4545
echo '</aside>';
4646
}
4747

hellodollyforyoursong.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Plugin Name: Hello Dolly For Your Song
55
Plugin URI: https://www.unmus.de/wordpress-plugin-hello-dolly-for-your-song/
66
Description: This simple plugin shows a random line of any text in your blog.
7-
Version: 0.18
7+
Version: 0.19
88
Author: Marco Hitschler
99
Author URI: https://www.unmus.de/
1010
License: GPL3

readme.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ This project is licensed under the GPL3 License.
153153

154154
## Changelog
155155

156+
### 0.19
157+
158+
* april 2024
159+
* Security: Echo Escaping added
160+
156161
### 0.18
157162

158163
* april 2023
@@ -269,4 +274,4 @@ This project is licensed under the GPL3 License.
269274
### 0.1
270275

271276
* 3 may 2013
272-
* Running version
277+
* Running version

0 commit comments

Comments
 (0)