File tree Expand file tree Collapse file tree 4 files changed +14
-24
lines changed
Expand file tree Collapse file tree 4 files changed +14
-24
lines changed Original file line number Diff line number Diff line change 1- 2.5
1+ 2.6
Original file line number Diff line number Diff line change 11# !/bin/tclsh
22
3- load tclrega.so
43source session.tcl
54
6- catch {
7- set input $env(QUERY_STRING)
8- set pairs [split $input &]
9- foreach pair $pairs {
10- if {0 != [regexp "^(\[ ^=]*)=(.*)$" $pair dummy varname val]} {
11- set $varname $val
12- }
13- }
14- }
15-
165proc toString { str } {
176 set map {
187 " \" " " \\\" "
Original file line number Diff line number Diff line change 11# !/bin/tclsh
22
3- load tclrega.so
43source session.tcl
54
6- catch {
7- set input $env(QUERY_STRING)
8- set pairs [split $input &]
9- foreach pair $pairs {
10- if {0 != [regexp "^(\[ ^=]*)=(.*)$" $pair dummy varname val]} {
11- set $varname $val
12- }
13- }
14- }
15-
165proc toString { str } {
176 set map {
187 " \" " " \\\" "
Original file line number Diff line number Diff line change 22
33load tclrega.so
44
5+ catch {
6+ set input $env(QUERY_STRING)
7+ set pairs [split $input &]
8+ set sid " "
9+ foreach pair $pairs {
10+ if {0 != [regexp "^sid=(@.*@)$" $pair dummy val]} {
11+ set sid $val
12+ break
13+ }
14+ }
15+ }
16+
517proc check_session sid {
618 if {[regexp {@([0-9a-zA-Z]{10})@} $sid all sidnr]} {
719 set res [lindex [rega_script " Write(system.GetSessionVarStr('$sidnr '));" ] 1]
@@ -10,4 +22,4 @@ proc check_session sid {
1022 }
1123 }
1224 return 0
13- }
25+ }
You can’t perform that action at this time.
0 commit comments