Avoid possible XSS when displaying the list of invalid plugins fixes #6871 for trunk props xknown.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
563e470237
commit
4134153d89
|
@ -168,7 +168,7 @@ require_once('admin-header.php');
|
|||
$invalid = validate_active_plugins();
|
||||
if( !empty($invalid) )
|
||||
foreach($invalid as $plugin_file => $error)
|
||||
echo '<div id="message" class="error"><p>' . sprintf(__('The plugin <code>%s</code> has been <strong>deactivated</strong> due to an error: %s'), $plugin_file, $error->get_error_message()) . '</p></div>';
|
||||
echo '<div id="message" class="error"><p>' . sprintf(__('The plugin <code>%s</code> has been <strong>deactivated</strong> due to an error: %s'), wp_specialchars($plugin_file), $error->get_error_message()) . '</p></div>';
|
||||
?>
|
||||
|
||||
<?php if ( isset($_GET['error']) ) : ?>
|
||||
|
|
Loading…
Reference in New Issue