Prevent double logging on undo
rodzic
3045406f76
commit
d88addacb0
|
@ -347,13 +347,13 @@
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Validate HTTP Message Signature
|
||||||
|
if ( !verifyHTTPSignature() ) { die(); }
|
||||||
|
|
||||||
// If this is an Undo, Delete, or Update message, try to process it
|
// If this is an Undo, Delete, or Update message, try to process it
|
||||||
if ( "Undo" == $inbox_type || "Delete" == $inbox_type || "Update" == $inbox_type ) {
|
if ( "Undo" == $inbox_type || "Delete" == $inbox_type || "Update" == $inbox_type ) {
|
||||||
undo( $inbox_message );
|
undo( $inbox_message );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate HTTP Message Signature
|
|
||||||
if ( !verifyHTTPSignature() ) { die(); }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the message is valid, save the message in `/data/inbox/`
|
// If the message is valid, save the message in `/data/inbox/`
|
||||||
|
@ -1749,9 +1749,6 @@ HTML;
|
||||||
// Perform the Undo action requested
|
// Perform the Undo action requested
|
||||||
function undo( $message ) {
|
function undo( $message ) {
|
||||||
global $server, $directories;
|
global $server, $directories;
|
||||||
|
|
||||||
// Validate HTTP Message Signature
|
|
||||||
if ( !verifyHTTPSignature() ) { die(); }
|
|
||||||
|
|
||||||
// Get some basic data
|
// Get some basic data
|
||||||
$type = $message["type"];
|
$type = $message["type"];
|
||||||
|
|
Ładowanie…
Reference in New Issue