Project

General

Profile

« Previous | Next » 

Revision 592b06fa

Added by Viktor Gurov over 5 years ago

escapeshellarg()

(cherry picked from commit 6ad0603b9fc9a65a9bd10390976676ae48b3fbd0)

View differences:

src/usr/local/www/system_routes.php
91 91
	foreach ($targets as $tgt) {
92 92
		$family = (is_subnetv6($tgt) ? "-inet6" : "-inet");
93 93
		$gateway = $a_gateways[$a_routes[$id]['gateway']]['gateway'];
94
		mwexec("/sbin/route delete {$family} " . escapeshellarg($tgt) . " " . $escapeshellarg($gateway));
94
		mwexec("/sbin/route delete {$family} " . escapeshellarg($tgt) . " " . escapeshellarg($gateway));
95 95
	}
96 96

  
97 97
	unset($targets);

Also available in: Unified diff