Diff

Differences From Artifact [af3233ef21]:

To Artifact [15db9f608a]:


   277    277   		if {![info exists indexhash_data]} {
   278    278   			# Cache this result for 60 seconds
   279    279   			db eval {INSERT OR REPLACE INTO sites (hostname, lastUpdate, ttl) VALUES ($hostname, $now, $::appfs::nttl);}
   280    280   
   281    281   			return -code error "Unable to fetch $url"
   282    282   		}
   283    283   
          284  +		set indexhash_data [string trim $indexhash_data "\r\n"]
   284    285   		set indexhash_data [split $indexhash_data ","]
   285         -		set indexhash [lindex $indexhash_data 0]
          286  +		set indexhash       [lindex $indexhash_data 0]
   286    287   		set indexhashmethod [lindex $indexhash_data 1]
   287    288   		set indexhashcert   [lindex $indexhash_data 2]
   288    289   		set indexhashsig    [lindex $indexhash_data 3]
   289    290   
   290    291   		if {![_isHash $indexhash]} {
   291    292   			return -code error "Invalid hash: $indexhash"
   292    293   		}