From ed4063b53852cfd186970cf0ceb2379053720273 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 6 Aug 2020 20:49:30 +0200 Subject: Changed viewhtml to use phttp to get images --- viewhtml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'viewhtml') diff --git a/viewhtml b/viewhtml index 8297020..cdb5ee3 100755 --- a/viewhtml +++ b/viewhtml @@ -70,8 +70,9 @@ proc displayNode {node tagList} { } elseif {$tag == "img"} { $w insert end "\n" set lattr [array get $attributes] - set path "$baseAddress/[lindex $lattr [expr [lsearch -exact $lattr src] + 1]]" - image create photo $path -file $path + set path "$baseAddress[lindex $lattr [expr [lsearch -exact $lattr src] + 1]]" + set localPath [lindex [split [exec ./phttp $path] { }] 2] + image create photo $path -file $localPath $w image create end -image $path $w insert end "\n" } -- cgit v1.1