Commit 7d122875 by Masaru Abe

#28871 オーサリング「プレビュー」表示のURLに不正アクセスした場合の対処

parent cb84cd51
...@@ -876,6 +876,10 @@ AVWEB.showSystemError = function(textId) { ...@@ -876,6 +876,10 @@ AVWEB.showSystemError = function(textId) {
//AVWEB.avwUserSetting().remove(COMMON.Keys.userInfo_sid_bak); //AVWEB.avwUserSetting().remove(COMMON.Keys.userInfo_sid_bak);
AVWEB.avwScreenMove(COMMON.ScreenIds.Login); AVWEB.avwScreenMove(COMMON.ScreenIds.Login);
} }
} else if(COMMON.isAuthoringPreview()) {
//オーサリングプレビューモードの場合は閉じる
window.open('', '_self', '');
window.close();
} }
} }
}); });
......
...@@ -6093,11 +6093,16 @@ CONTENTVIEW.ready = function(initContentId){ ...@@ -6093,11 +6093,16 @@ CONTENTVIEW.ready = function(initContentId){
ClientData.JumpQueue([]); ClientData.JumpQueue([]);
ClientData.IsJumpBack(false); ClientData.IsJumpBack(false);
//オーサリングプレビュー対応
if(COMMON.isAuthoringPreview() && CONTENTVIEW_GENERAL.pid != ''){
// Show system error
AVWEB.showSystemError();
} else {
var moveScreen = null; var moveScreen = null;
if(!ClientData.isStreamingMode() && !ClientData.isGetitsMode()){ if(!ClientData.isStreamingMode() && !ClientData.isGetitsMode()){
moveScreen = COMMON.ScreenIds.Home; moveScreen = COMMON.ScreenIds.Home;
} }
if (xmlHttpRequest.status == 404) { if (xmlHttpRequest.status == 404) {
CONTENTVIEW.showAlertScreen(I18N.i18nText('msgContentNotExist'), moveScreen); CONTENTVIEW.showAlertScreen(I18N.i18nText('msgContentNotExist'), moveScreen);
} }
...@@ -6110,6 +6115,7 @@ CONTENTVIEW.ready = function(initContentId){ ...@@ -6110,6 +6115,7 @@ CONTENTVIEW.ready = function(initContentId){
AVWEB.showSystemError(); AVWEB.showSystemError();
} }
} }
}
); );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment