mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	fix: only allow numbers as scores (#7356)
* zadd score checks * fix: only allow numbers as scores * fix: convert values to strings
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							0fffcb3855
						
					
				
				
					commit
					5917dec288
				
			| @@ -46,9 +46,5 @@ helpers.deserializeData = function (data) { | ||||
| }; | ||||
|  | ||||
| helpers.valueToString = function (value) { | ||||
| 	if (value === null || value === undefined) { | ||||
| 		return value; | ||||
| 	} | ||||
|  | ||||
| 	return value.toString(); | ||||
| 	return String(value); | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user