shithub: misc

ref: 06ded18ce9088df6aa259598454f804df3f44ff3
dir: /9legacy/webfs_increment_max_ctl_message_len.diff/

View raw version
--- sys/src/cmd/webfs/fs.c	Fri Oct  7 06:56:43 2005
+++ /sys/src/cmd/webfs/fs.c	Fri Jul 16 06:33:46 2021
@@ -301,7 +301,8 @@
 
 	case Qrootctl:
 	case Qctl:
-		if(r->ifcall.count >= 1024){
+		/* The max URL length of most web browsers is >= 2048 */ 
+		if(r->ifcall.count >= 2048){
 			respond(r, "ctl message too long");
 			return;
 		}