File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -334,6 +334,14 @@ export function finishView (view) {
334
334
// strip HTML tags to avoid stored XSS
335
335
const gistid = value . getAttribute ( 'data-gist-id' )
336
336
value . setAttribute ( 'data-gist-id' , stripTags ( gistid ) )
337
+ const gistfile = value . getAttribute ( 'data-gist-file' )
338
+ if ( gistfile ) value . setAttribute ( 'data-gist-file' , stripTags ( gistfile ) )
339
+ const gistline = value . getAttribute ( 'data-gist-line' )
340
+ if ( gistline ) value . setAttribute ( 'data-gist-line' , stripTags ( gistline ) )
341
+ const gisthighlightline = value . getAttribute ( 'data-gist-highlight-line' )
342
+ if ( gisthighlightline ) value . setAttribute ( 'data-gist-highlight-line' , stripTags ( gisthighlightline ) )
343
+ const gistshowloading = value . getAttribute ( 'data-gist-show-loading' )
344
+ if ( gistshowloading ) value . setAttribute ( 'data-gist-show-loading' , stripTags ( gistshowloading ) )
337
345
$ ( value ) . gist ( window . viewAjaxCallback )
338
346
}
339
347
} )
You can’t perform that action at this time.
0 commit comments