Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/trac/templates/fcgi.conf.erb

Issue 29726560: #9223 - Deny access to Trac /subjects witohut parameters (Closed)
Patch Set: Created March 18, 2018, 4:31 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/trac/templates/fcgi.conf.erb
===================================================================
--- a/modules/trac/templates/fcgi.conf.erb
+++ b/modules/trac/templates/fcgi.conf.erb
@@ -1,5 +1,19 @@
location <%= @location_base %>/
{
+
+ location <%= @location_base %>/subjects
+ {
+ if ($arg_q = "")
+ {
+ return 403;
+ }
+
+ if ($arg_limit = "")
+ {
+ return 403;
+ }
+ }
+
fastcgi_pass unix:/tmp/<%= @name %>-fastcgi.sock;
fastcgi_split_path_info ^(<%= @location_base %>)(.*)$;
include /etc/nginx/fastcgi_params;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld