[fix] manual update

This commit is contained in:
Knah Tsaeb 2015-07-10 10:13:45 +02:00
parent 9ae1fbbb06
commit 72059fd95e
2 changed files with 2 additions and 3 deletions

View file

@ -83,7 +83,7 @@ function manualGen($hash, $log) {
$hash = sha1($GLOBALS['config']['salt'].rawurldecode($line[1]));
file_put_contents('cache/tmp/manual.txt', $line[1]);
chdir('bin/');
exec('bash thumb_server.sh manual '.escapeshellarg($hash).' '.escapeshellarg($line[3]).' '.escapeshellarg($line[4]).' 0 1', $result);
exec('bash thumb_server.sh manual '.escapeshellarg($hash).' '.escapeshellarg($line[3]).' '.escapeshellarg($line[4]).' trc 1', $result);
chdir('../');
if ((int)$result[0] === 1) {
$res['success'] = 1;
@ -111,7 +111,7 @@ function tryRootDomain($hash, $log) {
$url = $parts['scheme'].'://'.trim($parts['host']);
file_put_contents('cache/tmp/manual.txt', $url);
chdir('bin/');
exec('bash thumb_server.sh manual '.escapeshellarg($hash).' '.escapeshellarg($line[3]).' '.escapeshellarg($line[4]).' 0 1', $result);
exec('bash thumb_server.sh manual '.escapeshellarg($hash).' '.escapeshellarg($line[3]).' '.escapeshellarg($line[4]).' trc 1', $result);
chdir('../');
if ((int)$result[0] === 1) {
$res['success'] = 1;

View file

@ -43,7 +43,6 @@ if (get_magic_quotes_gpc()) {
$value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
return $value;
}
$_POST = array_map('stripslashes_deep', $_POST);
$_GET = array_map('stripslashes_deep', $_GET);
$_COOKIE = array_map('stripslashes_deep', $_COOKIE);