mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing that a request to an RSS feed with the empty "projection" query string parameter caused exception.
This commit is contained in:
@@ -39,7 +39,7 @@ namespace Orchard.Projections.StandardQueries {
|
||||
|
||||
public void Execute(FeedContext context) {
|
||||
var projectionId = context.ValueProvider.GetValue("projection");
|
||||
if (projectionId == null)
|
||||
if (projectionId == null || String.IsNullOrEmpty(projectionId.AttemptedValue))
|
||||
return;
|
||||
|
||||
var limitValue = context.ValueProvider.GetValue("limit");
|
||||
|
||||
Reference in New Issue
Block a user