We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0a27ce commit c7ae190Copy full SHA for c7ae190
SqliteCache/SqliteCacheOptions.cs
@@ -27,16 +27,15 @@ public string CachePath
27
set
28
{
29
// User might have passed a connection string instead of a data source
30
- if (value.StartsWith("Data Source=", StringComparison.InvariantCultureIgnoreCase))
+ if (value.StartsWith("Data Source=", StringComparison.OrdinalIgnoreCase))
31
32
value = value.Replace("Data Source=", "");
33
}
34
- value = value.Trim();
35
if (value.Contains("=") || value.Contains("\""))
36
37
throw new ArgumentException("CachePath must be a path and not a connection string!");
38
39
- _cachePath = value;
+ _cachePath = value.Trim();
40
41
42
0 commit comments