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 352bbd6 commit b55fb39Copy full SHA for b55fb39
dotnet/src/dotnetframework/GxClasses/Core/GXApplication.cs
@@ -1301,11 +1301,8 @@ public bool IsForward()
1301
1302
public bool isCrawlerRequest_impl()
1303
{
1304
- if (_HttpContext != null && _HttpContext.Request.QueryString.ToString().Contains("_escaped_fragment_"))
1305
- {
1306
- return true;
1307
- }
1308
- return false;
+ string query = _HttpContext?.Request?.QueryString.ToString();
+ return !string.IsNullOrEmpty(query) && query.Contains("_escaped_fragment_");
1309
}
1310
1311
public HtmlTextWriter OutputWriter
0 commit comments