From cf3a511071fbdd30005cc97718c4ed0e31c88d0c Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Sun, 26 Jan 2020 14:04:51 -0800 Subject: [PATCH] Follow-up 688fff1: Fix the other use of Sanitizer::escapeId() Change-Id: I964f83ce88fb9c66a7c59037c6066f4567bcf4c9 --- includes/TimelessTemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/TimelessTemplate.php b/includes/TimelessTemplate.php index b9e57ba..eb38142 100644 --- a/includes/TimelessTemplate.php +++ b/includes/TimelessTemplate.php @@ -348,7 +348,7 @@ class TimelessTemplate extends BaseTemplate { $html .= Html::openElement( 'div', [ - 'id' => Sanitizer::escapeId( $id ), + 'id' => Sanitizer::escapeIdForAttribute( $id ), 'class' => 'mw-portlet', 'role' => 'banner' ]