File tree 1 file changed +11
-0
lines changed 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -2799,6 +2799,17 @@ sub app_startup {
2799
2799
}
2800
2800
);
2801
2801
2802
+ # In previous versions of bugzilla, an .htaccess file was used to redirect
2803
+ # urls (often in the form of form:name or form.name) to different .cgi
2804
+ # endpoints.
2805
+ #
2806
+ # Since the port to Mojolicious, we do this by adding additional routes.
2807
+ # This is accomplished with a placeholder that we consistently prefix with
2808
+ # REWRITE_, and as you can see below is followed by an arrayref mapping the
2809
+ # (arbitrary) name to a regular expression and a destination.
2810
+ #
2811
+ # The REWRITE_ prefix is only significant because it is removed from the fake
2812
+ # CGI environment in Bugzilla::App::CGI
2802
2813
$r -> any(' /:REWRITE_itrequest' => [REWRITE_itrequest => qr { form[\. :]itrequest} ])
2803
2814
-> to(' CGI#enter_bug_cgi' =>
2804
2815
{' product' => ' Infrastructure & Operations' , ' format' => ' itrequest' });
You can’t perform that action at this time.
0 commit comments