diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-01-09 14:07:08 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-01-09 14:07:08 (GMT) |
| commit | 60b9ee05fb19bee21a30c335acceee0217530f6e (patch) | |
| tree | e45a1ab8d48a60009a076a8c0028bfa382bf2ac5 | |
| parent | deb28dda07f10eafac675eafbddc64cd3d85765b (diff) | |
| parent | 9f5691b2cdd88fd5670ccac47f70363a2fe87b6f (diff) | |
| download | tcl-60b9ee05fb19bee21a30c335acceee0217530f6e.zip tcl-60b9ee05fb19bee21a30c335acceee0217530f6e.tar.gz tcl-60b9ee05fb19bee21a30c335acceee0217530f6e.tar.bz2 | |
[Bug 3599395]: http assumes status line is a proper tcl list.
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | library/http/http.tcl | 2 |
2 files changed, 7 insertions, 2 deletions
@@ -1,8 +1,13 @@ +2013-01-09 Jan Nijtmans <nijtmans@users.sf.net> + + * library/http/http.tcl: [Bug 3599395]: http assumes status line + is a proper tcl list. + 2013-01-08 Jan Nijtmans <nijtmans@users.sf.net> * win/tclWinFile.c: [Bug 3092089]: [file normalize] can remove path components. [Bug 3587096] win vista/7: "can't find init.tcl" when - called via junction. + called via junction without folder list access. 2013-01-07 Jan Nijtmans <nijtmans@users.sf.net> diff --git a/library/http/http.tcl b/library/http/http.tcl index cb221a3..01bf772 100644 --- a/library/http/http.tcl +++ b/library/http/http.tcl @@ -981,7 +981,7 @@ proc http::Event {sock token} { } elseif {$n == 0} { # We have now read all headers # We ignore HTTP/1.1 100 Continue returns. RFC2616 sec 8.2.3 - if {$state(http) == "" || [lindex $state(http) 1] == 100} { + if {$state(http) == "" || ([regexp {^\S+\s(\d+)} $state(http) {} x] && $x == 100)} { return } |
