[wpdev-commits] xmlscripts/scripts webadmin.py,1.12,1.13
Brought to you by:
rip,
thiagocorrea
|
From: <thi...@us...> - 2003-11-30 18:16:03
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv30965/scripts Modified Files: webadmin.py Log Message: Fix the POST bug with IE Index: webadmin.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/webadmin.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** webadmin.py 8 Oct 2003 01:47:41 -0000 1.12 --- webadmin.py 30 Nov 2003 18:16:00 -0000 1.13 *************** *** 195,198 **** --- 195,205 ---- try: try: + try: + nbytes = int(length) + except (TypeError, ValueError): + nbytes = 0 + # throw away additional data [see bug #427345] + if self.command.lower() == "post" and nbytes > 0: + self.rfile._rbufsize = nbytes + 2 os.environ.update(env) sys.argv = [scriptfile] |