Skip to content

Commit a23052c

Browse files
author
Marius Burkard
committed
- fixed argument replacement in exec_safe function
1 parent 3c2f318 commit a23052c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

interface/lib/classes/system.inc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ public function exec_safe($cmd) {
7171
}
7272
if($arg_count > 1) {
7373
$args = func_get_args();
74-
74+
array_shift($args);
75+
7576
$pos = 0;
7677
$a = 0;
7778
foreach($args as $value) {

server/lib/classes/system.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2077,6 +2077,7 @@ public function exec_safe($cmd) {
20772077
}
20782078
if($arg_count > 1) {
20792079
$args = func_get_args();
2080+
array_shift($args);
20802081

20812082
$pos = 0;
20822083
$a = 0;

0 commit comments

Comments
 (0)