Skip to content

Commit

Permalink
HTML-escape any page names that come from external queries
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardspec committed Dec 25, 2024
1 parent fda4c30 commit ebf7d32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ext.askai.chatwith.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ $( function () {
displayProgress( $( '<b>' ).append( mw.msg( 'askai-excluded-pages' ) ) );
displayProgress( allPageNames.filter( ( name ) =>
pageNames.indexOf( name ) === -1
).join( '<br>' ) );
).map( mw.html.escape ).join( '<br>' ) );
}

displayProgress( $( '<b>' ).append( mw.msg( 'askai-included-pages' ) ) );
displayProgress( pageNames.join( '<br>' ) );
displayProgress( pageNames.map( mw.html.escape ).join( '<br>' ) );

// Download each of the articles and find the paragraphs that have the snippet.
return Promise.all(
Expand Down

0 comments on commit ebf7d32

Please sign in to comment.