summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsandeep <sandeep>2000-03-22 22:49:57 (GMT)
committersandeep <sandeep>2000-03-22 22:49:57 (GMT)
commitc00dc12840819fe6894220637347629267d8a409 (patch)
treeeabdb78bc829cbddec6b5c178d96deaf01ae14b6
parent185c0cfd19e6c46fe4749ccc09d4b994a1200925 (diff)
downloadtcl-c00dc12840819fe6894220637347629267d8a409.zip
tcl-c00dc12840819fe6894220637347629267d8a409.tar.gz
tcl-c00dc12840819fe6894220637347629267d8a409.tar.bz2
2000-03-22 Sandeep Tamhankar <sandeep@scriptics.com>
* library/http2.1/http.tcl: Fixed a bug where string query data that was bigger than queryblocksize would get duplicate characters at block boundaries.
-rw-r--r--ChangeLog6
-rw-r--r--library/http/http.tcl5
-rw-r--r--library/http2.1/http.tcl5
-rw-r--r--library/http2.3/http.tcl5
4 files changed, 15 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 72eb19b..2430acb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2000-03-22 Sandeep Tamhankar <sandeep@scriptics.com>
+ * library/http2.1/http.tcl: Fixed a bug where string query data
+ that was bigger than queryblocksize would get duplicate characters
+ at block boundaries.
+
+2000-03-22 Sandeep Tamhankar <sandeep@scriptics.com>
+
* library/http2.1/http.tcl: Fixed bug 4463, where we were getting
a stack trace if we tried to publish a project to a good host but
a port where there was no server listening. It turned out the
diff --git a/library/http/http.tcl b/library/http/http.tcl
index 158698b..d1907a8 100644
--- a/library/http/http.tcl
+++ b/library/http/http.tcl
@@ -9,7 +9,7 @@
# See the file "license.terms" for information on usage and
# redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: http.tcl,v 1.25 2000/03/22 21:18:25 sandeep Exp $
+# RCS: @(#) $Id: http.tcl,v 1.26 2000/03/22 22:49:57 sandeep Exp $
package provide http 2.3 ;# This uses Tcl namespaces
@@ -517,7 +517,8 @@ proc http::Write {token} {
if {[info exists state(-query)]} {
set outStr [string range $state(-query) $state(queryoffset) \
- [incr state(queryoffset) $state(-queryblocksize)]]
+ [expr {$state(queryoffset) + $state(-queryblocksize) - 1}]]
+ incr state(queryoffset) $state(-queryblocksize)
} else {
# querychannel
set outStr [read $state(-querychannel) $state(-queryblocksize)]
diff --git a/library/http2.1/http.tcl b/library/http2.1/http.tcl
index 158698b..d1907a8 100644
--- a/library/http2.1/http.tcl
+++ b/library/http2.1/http.tcl
@@ -9,7 +9,7 @@
# See the file "license.terms" for information on usage and
# redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: http.tcl,v 1.25 2000/03/22 21:18:25 sandeep Exp $
+# RCS: @(#) $Id: http.tcl,v 1.26 2000/03/22 22:49:57 sandeep Exp $
package provide http 2.3 ;# This uses Tcl namespaces
@@ -517,7 +517,8 @@ proc http::Write {token} {
if {[info exists state(-query)]} {
set outStr [string range $state(-query) $state(queryoffset) \
- [incr state(queryoffset) $state(-queryblocksize)]]
+ [expr {$state(queryoffset) + $state(-queryblocksize) - 1}]]
+ incr state(queryoffset) $state(-queryblocksize)
} else {
# querychannel
set outStr [read $state(-querychannel) $state(-queryblocksize)]
diff --git a/library/http2.3/http.tcl b/library/http2.3/http.tcl
index 158698b..d1907a8 100644
--- a/library/http2.3/http.tcl
+++ b/library/http2.3/http.tcl
@@ -9,7 +9,7 @@
# See the file "license.terms" for information on usage and
# redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: http.tcl,v 1.25 2000/03/22 21:18:25 sandeep Exp $
+# RCS: @(#) $Id: http.tcl,v 1.26 2000/03/22 22:49:57 sandeep Exp $
package provide http 2.3 ;# This uses Tcl namespaces
@@ -517,7 +517,8 @@ proc http::Write {token} {
if {[info exists state(-query)]} {
set outStr [string range $state(-query) $state(queryoffset) \
- [incr state(queryoffset) $state(-queryblocksize)]]
+ [expr {$state(queryoffset) + $state(-queryblocksize) - 1}]]
+ incr state(queryoffset) $state(-queryblocksize)
} else {
# querychannel
set outStr [read $state(-querychannel) $state(-queryblocksize)]