File tree Expand file tree Collapse file tree
cropper/src/main/kotlin/com/canhub/cropper Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -428,14 +428,14 @@ internal object BitmapUtils {
428428 /* *
429429 * Validates the output URI for security purposes.
430430 * Only allows content:// URIs and validates file extension matches compress format.
431- *
431+ *
432432 * @throws SecurityException if URI scheme is not content:// or extension doesn't match format
433433 */
434434 internal fun validateOutputUri (uri : Uri , compressFormat : CompressFormat ) {
435435 // Only allow content:// URIs for security reasons
436436 if (uri.scheme != ContentResolver .SCHEME_CONTENT ) {
437437 throw SecurityException (
438- " Only content:// URIs are allowed for security reasons. Received: ${uri.scheme} ://"
438+ " Only content:// URIs are allowed for security reasons. Received: ${uri.scheme} ://" ,
439439 )
440440 }
441441
@@ -453,7 +453,7 @@ internal object BitmapUtils {
453453 " File extension does not match compress format. " +
454454 " Expected one of: ${expectedExtensions.joinToString(" , " )} , " +
455455 " Format: $compressFormat , " +
456- " Path: $path "
456+ " Path: $path " ,
457457 )
458458 }
459459 }
You can’t perform that action at this time.
0 commit comments