Passing '$derivative_uri' as a string instead of using the actual variable value

Created on 5 March 2025, about 1 month ago

There is a mistake in the code. Specifically, the issue is with how the 'uri' value is assigned. Passing '$derivative_uri' as a string instead of using the actual variable value in the below file.

c2pa_sign/src/EventSubscriber/C2paSignSubscriber.php

// create a temporary fisle
$file = File::create([
'filename' => basename($derivative_uri),
'uri' => '$derivative_uri',
'status' => 1,
'uid' => 1,
]);

Solution : Incorrect Variable Usage:
'uri' => '$derivative_uri'
This treats $derivative_uri as a string instead of using the variable value.
Fixed by removing the single quotes: 'uri' => $derivative_uri

🐛 Bug report
Status

Active

Version

1.4

Component

Code

Created by

🇮🇳India selvakumar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024