From e5380bd32bdc57253b3816b02afafd1b6f468ae2 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sun, 9 Feb 2014 14:08:44 +0000 Subject: [PATCH] HTMLv: fix for URLs, need to test git-svn-id: svn://kolibrios.org@4562 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/TWB/TWB.c | 1 - programs/cmm/TWB/img_cache.h | 2 +- programs/cmm/TWB/parce_tag.h | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/cmm/TWB/TWB.c b/programs/cmm/TWB/TWB.c index 08e465cf7d..91f930a714 100644 --- a/programs/cmm/TWB/TWB.c +++ b/programs/cmm/TWB/TWB.c @@ -309,7 +309,6 @@ void TWebBrowser::Parse(dword bufpos, in_filesize){ bufpos++; } strlwr(#tag); - strlwr(#tagparam); if (condition_text_active) && (condition_text_val != condition_href) { diff --git a/programs/cmm/TWB/img_cache.h b/programs/cmm/TWB/img_cache.h index 08bc16cba8..d0968ca08f 100644 --- a/programs/cmm/TWB/img_cache.h +++ b/programs/cmm/TWB/img_cache.h @@ -43,7 +43,7 @@ void ImageCache::Images(int left1, top1, width1) do{ if (!strcmp(#parametr,"src=")) //надо объединить с GetNewUrl() { - //if (downloader_id) strcpy(#img_path, #history_list[history_current-1].Item); else + if (downloader_id) strcpy(#img_path, #history_list[BrowserHistory.current-1].Item); else strcpy(#img_path, BrowserHistory.CurrentUrl()); if (strcmpn(#img_path, "http:", 5)!=0) || (strcmpn(#options, "http:", 5)!=0) { diff --git a/programs/cmm/TWB/parce_tag.h b/programs/cmm/TWB/parce_tag.h index 7040f10d6f..8843c896e5 100644 --- a/programs/cmm/TWB/parce_tag.h +++ b/programs/cmm/TWB/parce_tag.h @@ -34,5 +34,6 @@ unsigned int GetNextParam() } strlcpy(#parametr, #tagparam + i + 1, sizeof(parametr)); tagparam[i] = 0x00; + strlwr(#parametr); return 1; } \ No newline at end of file