shithub: misc

ref: f54501c2592bd7cee283a243391d07f2dd131373
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;
 		}