Skip to content

Commit a5881b3

Browse files
georgeolaruclaude
andcommitted
Escape admin_title and plugin_status in Pixelgrade Care installer (#358)
- Wrap admin_title with esc_html() in title tag output - Wrap plugin_status with esc_js() in JavaScript context Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a72bdca commit a5881b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inc/integrations/pixelgrade-care.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function anima_pixcare_install_page() {
136136
<head>
137137
<meta name="viewport" content="width=device-width"/>
138138
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
139-
<title><?php echo $admin_title; ?></title>
139+
<title><?php echo esc_html( $admin_title ); ?></title>
140140
<script type="text/javascript">
141141
var ajaxurl = '<?php echo esc_url( admin_url( 'admin-ajax.php', 'relative' ) ); ?>',
142142
pagenow = 'plugins';
@@ -185,7 +185,7 @@ function anima_pixcare_install_page() {
185185
// On document ready.
186186
$(function () {
187187
var temp_url = wp.ajax.settings.url,
188-
pluginStatus = "<?php echo $plugin_status; ?>",
188+
pluginStatus = "<?php echo esc_js( $plugin_status ); ?>",
189189
$plugin = $('.plugin'),
190190
$status = $plugin.find('.box__text')
191191

0 commit comments

Comments
 (0)