Skip to content

Commit

Permalink
Regex validation of allowed paths
Browse files Browse the repository at this point in the history
  • Loading branch information
gmargol committed Aug 3, 2017
1 parent 6910214 commit d385ac9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1.0.0.{build}
version: 1.1.1.{build}
pull_requests:
do_not_increment_build_number: true
branches:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Cogworks.SiteLock",
"version": "1.1.0",
"version": "1.1.1",
"url": "https://github.com/thecogworks/sitelock",
"license": {
"name": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions src/Cogworks.SiteLock/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: AssemblyInformationalVersion("1.1.0")]
[assembly: AssemblyVersion("1.1.1.0")]
[assembly: AssemblyFileVersion("1.1.1.0")]
[assembly: AssemblyInformationalVersion("1.1.1")]
4 changes: 2 additions & 2 deletions src/Cogworks.SiteLock/Properties/AssemblyInfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"company": "Cogworks",
"product": "Umbraco SiteLock",
"copyright": "Copyright © 2017",
"version": "1.1.0",
"version": "1.1.1",
"informationalVersion": null,
"fileVersion": "1.1.0"
"fileVersion": "1.1.1"
}
2 changes: 1 addition & 1 deletion src/Cogworks.SiteLock/Web/Helpers/RequestHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ internal static bool IsAllowedPath(ISiteLockConfiguration config, string absolut
{
var absolutePathLowered = absolutePath.ToLowerInvariant();

var allowedPaths = config.GetAllowedPaths();
var allowedPaths = config.GetAllowedPaths().Select(path => path.ToLowerInvariant());

foreach (var item in allowedPaths)
{
Expand Down

0 comments on commit d385ac9

Please sign in to comment.