on vire complètement les apostrophes et puis c'est tout
This commit is contained in:
parent
4f1c9ba70a
commit
7e957014f7
2
ajax.php
2
ajax.php
@ -23,7 +23,7 @@ if (!empty($_POST['action'])) {
|
||||
echo ansi2html($session->exec('bash -c \'cd ' . $config['path'] . ' && ' . $gitstatus . "'"));
|
||||
} else if ($_POST['action'] == 'push') {
|
||||
$message = empty($_POST['message']) ? 'FTP' : $_POST['message'];
|
||||
echo ansi2html($session->exec('bash -c \'cd ' . $config['path'] . ' && git add -A && git commit -m "' . str_replace('"', "'", $message) . '" && git push && ' . $gitstatus . "'"));
|
||||
echo ansi2html($session->exec('bash -c \'cd ' . $config['path'] . ' && git add -A && git commit -m "' . str_replace(array('"', "'"), ' ', $message) . '" && git push && ' . $gitstatus . "'"));
|
||||
} else if ($_POST['action'] == 'pull') {
|
||||
echo ansi2html($session->exec('bash -c \'cd ' . $config['path'] . ' && git pull && ' . $gitstatus . "'"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user