Explorar o código

Only load trusted iframe (#23245)

Rohan Sharma %!s(int64=3) %!d(string=hai) anos
pai
achega
0c31bc605e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/index.html

+ 1 - 1
docs/index.html

@@ -498,7 +498,7 @@
 			const oldIframe = iframe;
 			iframe = oldIframe.cloneNode();
 
-			if ( hash ) {
+			if ( hash && titles[ splitHash[ 0 ] ] ) {
 
 				iframe.src = splitHash[ 0 ] + '.html' + splitHash[ 1 ];
 				subtitle = titles[ splitHash[ 0 ] ] + splitHash[ 1 ] + ' – ';