Revision 50264b58
Added by NewEraCracker about 9 years ago
src/etc/inc/interfaces.inc | ||
---|---|---|
2080 | 2080 |
} |
2081 | 2081 |
|
2082 | 2082 |
/* fire up mpd */ |
2083 |
mwexec("/usr/local/sbin/mpd5 -b -k -d {$g['varetc_path']} -f mpd_{$interface}.conf -p {$g['varrun_path']}/" . |
|
2084 |
escapeshellarg($ppp['type']) . "_{$interface}.pid -s ppp " . escapeshellarg($ppp['type']) . "client"); |
|
2083 |
mwexec("/usr/local/sbin/mpd5 -b -k -d {$g['varetc_path']} -f mpd_{$interface}.conf -p " . |
|
2084 |
escapeshellarg("{$g['varrun_path']}/{$ppp['type']}_{$interface}.pid") . " -s ppp " . |
|
2085 |
escapeshellarg("{$ppp['type']}client")); |
|
2085 | 2086 |
|
2086 | 2087 |
// Check for PPPoE periodic reset request |
2087 | 2088 |
if ($type == "pppoe") { |
Also available in: Unified diff
Fix bad escapeshellarg logic on mpd execution
With this change single-quotes are applied in correct places
(cherry picked from commit 08cd022545be58a46b860500ff81bbe7438b6304)