Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit 3641d7e

Browse files
committed
Add ability to specify custom validation method
1 parent 16cd664 commit 3641d7e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/wpxf/wordpress/shell_upload.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ def run
9393
true
9494
end
9595

96+
# @return [Boolean] true if the result of the upload operation is valid.
97+
def validate_upload_result
98+
true
99+
end
100+
96101
# Execute the payload at the specified address.
97102
# @param payload_url [String] the payload URL to access.
98103
def execute_payload(payload_url)
@@ -123,6 +128,6 @@ def upload_payload(builder)
123128
return false
124129
end
125130

126-
true
131+
validate_upload_result
127132
end
128133
end

0 commit comments

Comments
 (0)