mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Fix a bunch of open redirect (#4575)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
@@ -16,7 +17,7 @@ namespace BTCPayServer.Models.StoreViewModels
|
||||
|
||||
public string[] Words
|
||||
{
|
||||
get => Mnemonic.Split((char[])null, System.StringSplitOptions.RemoveEmptyEntries);
|
||||
get => Mnemonic?.Split((char[])null, System.StringSplitOptions.RemoveEmptyEntries) ?? Array.Empty<string>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user