Skip to content
Permalink
Browse files Browse the repository at this point in the history
🔒️ XSS fix on language_attributes (#285)
  • Loading branch information
retlehs committed Jul 31, 2022
1 parent fb58ad9 commit 0c9151e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modules/CleanUpModule.php
Expand Up @@ -249,7 +249,7 @@ public function languageAttributes()
$attributes[] = 'dir="rtl"';
}

$lang = get_bloginfo('language');
$lang = esc_attr(get_bloginfo('language'));

if ($lang) {
$attributes[] = "lang=\"{$lang}\"";
Expand Down

0 comments on commit 0c9151e

Please sign in to comment.