Skip to content

Commit 38fd851

Browse files
authored
Escape error messages
1 parent f2c3e27 commit 38fd851

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

includes/EmbedSnap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ public static function renderEmbedSnap( $input, $argv, $parser ) {
126126
);
127127
} else {
128128
// If the user value is empty it can't render the iframe and returns an error instead.
129-
return Html::errorBox( wfMessage( 'error-username' )->text() );
129+
return Html::errorBox( wfMessage( 'error-username' )->escaped() );
130130
}
131131
} else {
132132
// If the project value is empty, then it also can't render the iframe and returns an error instead.
133-
return Html::errorBox( wfMessage( 'error-project' )->text() );
133+
return Html::errorBox( wfMessage( 'error-project' )->escaped() );
134134
}
135135
}
136136
}

0 commit comments

Comments
 (0)