Skip to content

Commit

Permalink
plug potential xss vector
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Oct 24, 2013
1 parent c7077cf commit f1f28f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,15 @@ var Reveal = (function(){
// Force a layout when the whole page, incl fonts, has loaded
window.addEventListener( 'load', layout, false );

var query = Reveal.getQueryHash();

// Do not accept new dependencies via query config to avoid
// the potential of malicious script injection
if( typeof query['dependencies'] !== 'undefined' ) delete query['dependencies'];

// Copy options over to our config object
extend( config, options );
extend( config, Reveal.getQueryHash() );
extend( config, query );

// Hide the address bar in mobile browsers
hideAddressBar();
Expand Down
Loading

0 comments on commit f1f28f6

Please sign in to comment.