mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: escape module values
We need to unescape the module argument values, just like pulseaudio does. We might end up with invalid escape sequences for the JSON parser. Fixes #3071
This commit is contained in:
		
							parent
							
								
									44f4845df3
								
							
						
					
					
						commit
						dd80b76cb0
					
				
					 1 changed files with 6 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -141,14 +141,14 @@ void module_args_add_props(struct pw_properties *props, const char *str)
 | 
			
		|||
			f = ' ';
 | 
			
		||||
		}
 | 
			
		||||
		v = p;
 | 
			
		||||
		for (e = p; *e ; e++) {
 | 
			
		||||
			if (*e == f)
 | 
			
		||||
		for (e = p; *p ;) {
 | 
			
		||||
			if (*p == f)
 | 
			
		||||
				break;
 | 
			
		||||
			if (*e == '\\')
 | 
			
		||||
				e++;
 | 
			
		||||
			if (*p == '\\')
 | 
			
		||||
				p++;
 | 
			
		||||
			*e++ = *p++;
 | 
			
		||||
		}
 | 
			
		||||
		p = e;
 | 
			
		||||
		if (*e != '\0')
 | 
			
		||||
		if (*p != '\0')
 | 
			
		||||
			p++;
 | 
			
		||||
		*e = '\0';
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue