scratch

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 80  →  ?path2? @ 81
/text.php
@@ -13,15 +13,15 @@
 
if(!isset($_POST['fingerprint']) or empty($_POST['fingerprint']) or
!isset($_POST['action']) or empty($_POST['action'])) {
header('Internal server error.', true, 500);
return;
http_response_code(500);
die('Internal server error.');
}
 
#### Check fingerprint consistency.
$fingerprint = strtoupper($_POST['fingerprint']);
if(strlen($fingerprint) !== 32) {
header('Internal server error.', true, 500);
return;
http_response_code(500);
die('Internal server error.');
}
 
$action = strtoupper($_POST['action']);
@@ -28,8 +28,8 @@
 
#### Data must be sent in order to save a file.
if($action === 'SAVE' and !isset($_POST['data'])) {
header('Internal server error.', true, 500);
return;
http_response_code(500);
die('Internal server error.');
}
 
#### Hash fingerprint.
@@ -60,8 +60,8 @@
$pathPart = pathinfo($userPath.'.html');
if (strcasecmp(
realpath($pathPart['dirname']), realpath($config['STORE_FOLDER'])) != 0) {
header('Internal server error.', true, 500);
return;
http_response_code(500);
die('Internal server error.');
}
 
switch($action) {