make sure only to prepend relative URLs (#18998)
This commit is contained in:
@@ -78,7 +78,12 @@ export class UmbInputImageCropperFieldElement extends UmbLitElement {
|
||||
|
||||
get source(): string {
|
||||
if (this.src) {
|
||||
return `${this._serverUrl}${this.src}`;
|
||||
// Test that URL is relative:
|
||||
if (this.src.startsWith('/')) {
|
||||
return `${this._serverUrl}${this.src}`;
|
||||
} else {
|
||||
return this.src;
|
||||
}
|
||||
}
|
||||
|
||||
return this.fileDataUrl ?? '';
|
||||
|
||||
Reference in New Issue
Block a user