mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	修复自定义页面无法保存的问题
This commit is contained in:
		@@ -369,7 +369,7 @@ func (this *HTTPWebService) UpdateHTTPWebShutdown(ctx context.Context, req *pb.U
 | 
				
			|||||||
			if len(shutdownConfig.URL) > maxURLLength {
 | 
								if len(shutdownConfig.URL) > maxURLLength {
 | 
				
			||||||
				return nil, errors.New("'url' too long")
 | 
									return nil, errors.New("'url' too long")
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			if !regexputils.HTTPProtocol.MatchString(shutdownConfig.URL) {
 | 
								if shutdownConfig.IsOn /** validate when it's on **/ && !regexputils.HTTPProtocol.MatchString(shutdownConfig.URL) {
 | 
				
			||||||
				return nil, errors.New("invalid 'url' format")
 | 
									return nil, errors.New("invalid 'url' format")
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user