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