Browse Source

Dont throw exeption if querystring is null

Former-commit-id: 6f6e583f72a7b4ca6f3623593e9c7061875e3001
Former-commit-id: 6494bc5f366c478032c1c130d87d5bae13638a3d
af/merge-core
Per Osbeck 11 years ago
parent
commit
1bbec5d7cd
  1. 7
      src/ImageProcessor.Web/Helpers/ImageHelpers.cs

7
src/ImageProcessor.Web/Helpers/ImageHelpers.cs

@ -78,7 +78,12 @@ namespace ImageProcessor.Web.Helpers
{
// Test against the path minus the querystring so any other
// processors don't interere.
string trimmed = fullPath.Replace(queryString, string.Empty);
string trimmed = fullPath;
if (queryString != null)
{
trimmed = trimmed.Replace(queryString, string.Empty);
}
match = FormatRegex.Match(trimmed);
}

Loading…
Cancel
Save