shithub: misc

ref: 001e60ea4b45fec9cb40ab8fbbebc334b4d3e9f4
dir: misc/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;
 		}