mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Improve detection of escaped hex bytes in ssid name
This commit is contained in:
		| @@ -69,7 +69,7 @@ function DisplayWPAConfig() | ||||
|                                 } | ||||
|                                 fwrite($wpa_file, $line.PHP_EOL); | ||||
|                             } else { | ||||
|                                 if ( strpos($ssid, "\x") !== false  && strpos($line, "ssid=\"") !== false ) { | ||||
|                                 if ( preg_match('/\\\\x[0-9A-Fa-f]{2}/',$ssid) && strpos($line, "ssid=\"") !== false ) { | ||||
|                                      fwrite($wpa_file, "\tssid=P\"".$ssid."\"".PHP_EOL); | ||||
|                                 } else { | ||||
|                                      fwrite($wpa_file, $line.PHP_EOL); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user