mirror of https://github.com/JustKato/FreePad.git
				
				
				
			* Fixed Sanitization
This commit is contained in:
		
							parent
							
								
									3dc09cae64
								
							
						
					
					
						commit
						22657cc111
					
				| 
						 | 
				
			
			@ -39,7 +39,7 @@ func HomeRoutes(router *gin.Engine) {
 | 
			
		|||
		if err == nil {
 | 
			
		||||
			postName = newPostName
 | 
			
		||||
		}
 | 
			
		||||
		postName = sanitize.PathName(sanitize.SingleLine(postName))
 | 
			
		||||
		postName = sanitize.XSS(sanitize.SingleLine(postName))
 | 
			
		||||
 | 
			
		||||
		post := objects.GetPost(postName)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -63,7 +63,7 @@ func HomeRoutes(router *gin.Engine) {
 | 
			
		|||
		if err == nil {
 | 
			
		||||
			postName = newPostName
 | 
			
		||||
		}
 | 
			
		||||
		postName = sanitize.PathName(sanitize.SingleLine(postName))
 | 
			
		||||
		postName = sanitize.XSS(sanitize.SingleLine(postName))
 | 
			
		||||
 | 
			
		||||
		p := objects.Post{
 | 
			
		||||
			Name:         postName,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue