* forbid open index/index in app's iframe to prevent infinite nesting.

This commit is contained in:
Hao Sun
2021-08-09 16:31:39 +08:00
parent bc723e845b
commit 8b1d769e67
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -71,7 +71,7 @@
if(code) return code;
var link = $.parseLink(urlOrModuleName);
if(!link.moduleName || link.isOnlyBody) return '';
if(!link.moduleName || link.isOnlyBody || (link.moduleName === 'index' && link.methodName === 'index')) return '';
if(link.hash && link.hash.indexOf('app=') === 0) return link.hash.substr(4);
+2 -2
View File
File diff suppressed because one or more lines are too long