From 5286e836d2426ebabb47ea3b063e09e1f5b0d24a Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sun, 17 Sep 2017 10:49:10 +0000 Subject: [PATCH] WebView 1.62: fix issue with HTTPS reproduced by hidnplayr git-svn-id: svn://kolibrios.org@6985 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/browser/WebView.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/programs/cmm/browser/WebView.c b/programs/cmm/browser/WebView.c index bae62e7c4f..ece281c7b4 100644 --- a/programs/cmm/browser/WebView.c +++ b/programs/cmm/browser/WebView.c @@ -30,7 +30,7 @@ char homepage[] = FROM "html\\homepage.htm""\0"; #ifdef LANG_RUS -char version[]="Текстовый браузер 1.61"; +char version[]="Текстовый браузер 1.62"; ?define IMAGES_CACHE_CLEARED "Кэш картинок очищен" ?define T_LAST_SLIDE "Это последний слайд" char loading[] = "Загрузка страницы...
"; @@ -43,7 +43,7 @@ char rmb_menu[] = Очистить кэш картинок Менеджер загрузок"; #else -char version[]="Text-based Browser 1.61"; +char version[]="Text-based Browser 1.62"; ?define IMAGES_CACHE_CLEARED "Images cache cleared" ?define T_LAST_SLIDE "This slide is the last" char loading[] = "Loading...
"; @@ -215,6 +215,9 @@ void main() DSBYTE[EDI-1]='\0'; if (!strncmp(#URL,"https://",8)) { + history.back(); + strcpy(#editURL, history.current()); + strcpy(#URL, history.current()); ShowErrorMessageThatHttpsIsNotSupportedYet(); StopLoading(); break; @@ -544,6 +547,9 @@ void ClickLink() if (!strncmp(#URL,"https://",8)) { ShowErrorMessageThatHttpsIsNotSupportedYet(); + strcpy(#editURL, history.current()); + strcpy(#URL, history.current()); + return; } GetAbsoluteURL(#URL);