Hakim El Hattab 11 лет назад
Родитель
Сommit
f1f28f61e6
2 измененных файлов с 8 добавлено и 2 удалено
  1. 7 1
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 7 - 1
js/reveal.js

@@ -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();

Разница между файлами не показана из-за своего большого размера
+ 1 - 1
js/reveal.min.js


Некоторые файлы не были показаны из-за большого количества измененных файлов