mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-06 08:09:40 +00:00
ensured data sources can be renamed and made it secure
This commit is contained in:
1 parent
202e37410b
commit
92e986d9b9
13 files changed
+137
-66
No files matched your search
@@ -121,6 +121,9 @@ public sealed class DataSourceValidation
|
||||
|
||||
if (dataSourceName.Length > 40)
|
||||
return TB("The name must not exceed 40 characters.");
|
||||
|
||||
if (dataSourceName.Any(char.IsControl))
|
||||
return TB("The name must not contain control characters.");
|
||||
|
||||
var lowerName = dataSourceName.ToLowerInvariant();
|
||||
if(lowerName != this.GetPreviousDataSourceName() && this.GetUsedDataSourceNames().Contains(lowerName))
|
||||
|
||||
Reference in new issue
Block a user