diff -r 26b9c01ad2cc core.js.patch
core.js Mon Feb 22 04:06:20 2016 +0000 | ||
---|---|---|
342 | 342 |
if (xmlhttp.status != 200 && xmlhttp.readyState == 4) { |
343 | 343 |
createProjectSave(null); |
344 | 344 |
} else { |
345 |
if (xmlhttp.responseXML == null) |
|
345 |
var parser = new DOMParser(); |
|
346 |
var xmlDoc = parser.parseFromString(xmlhttp.responseText, "application/xml"); |
|
347 |
if (xmlDoc == null) |
|
346 | 348 |
{ |
347 | 349 |
createProjectSave('null'); |
348 | 350 |
} |
349 |
var response = xmlhttp.responseXML.childNodes[0];
|
|
351 |
var response = xmlDoc.childNodes[0];
|
|
350 | 352 |
if (response.getAttribute('state') == "OK") |
351 | 353 |
{ |
352 | 354 |
var file = response.getElementsByTagName('file')[0]; |
save.php Mon Feb 22 04:06:20 2016 +0000 | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
header('Access-Control-Allow-Origin: *'); |
3 | 3 |
header("Content-type: text/xml"); |
4 |
error_reporting(0); |
|
4 | 5 |
$postText = file_get_contents('php://input'); |
5 | 6 |
$sha1_hash = sha1($postText); |
6 | 7 |
$datetime = date('ymdHis'); |