mirror of
				https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
				synced 2023-10-10 11:37:40 +00:00 
			
		
		
		
	Fix session check
This commit is contained in:
		| @@ -46,7 +46,7 @@ proc get_session {sid} { | ||||
|  | ||||
| proc check_session {sid} { | ||||
| 	if {[get_session $sid] != ""} { | ||||
| 		# renew session | ||||
| 		# check and renew session | ||||
| 		set url "http://127.0.0.1/pages/index.htm?sid=$sid" | ||||
| 		set request [::http::geturl $url] | ||||
| 		set code [::http::code $request] | ||||
| @@ -54,7 +54,6 @@ proc check_session {sid} { | ||||
| 		if {[lindex $code 1] == 200} { | ||||
| 			return 1 | ||||
| 		} | ||||
| 		return 1 | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user