[rt-commit] [svn] r676 - in rt/branches/rt-3.1: . etc html
robert at fsck.com
robert at fsck.com
Tue Apr 6 22:41:02 EDT 2004
Author: robert
Date: Tue Apr 6 22:41:02 2004
New Revision: 676
Modified:
rt/branches/rt-3.1/ (props changed)
rt/branches/rt-3.1/etc/RT_Config.pm.in
rt/branches/rt-3.1/html/autohandler
Log:
----------------------------------------------------------------------
r370: rspier | 2004-04-07T02:38:41.319440Z
[fsck.com #5430] Make NoAuth configurable via config file
----------------------------------------------------------------------
Modified: rt/branches/rt-3.1/etc/RT_Config.pm.in
==============================================================================
--- rt/branches/rt-3.1/etc/RT_Config.pm.in (original)
+++ rt/branches/rt-3.1/etc/RT_Config.pm.in Tue Apr 6 22:41:02 2004
@@ -279,6 +279,11 @@
Set($LogoURL , $WebImagesURL . "rt.jpg");
+# WebNoAuthRegex - What portion of RT's URLspace should not require
+# authentication.
+Set($WebNoAuthRegex, qr!^(?:/+NoAuth/|
+ /+REST/\d+\.\d+/NoAuth/)!x );
+
# For message boxes, set the entry box width and what type of wrapping
# to use.
#
Modified: rt/branches/rt-3.1/html/autohandler
==============================================================================
--- rt/branches/rt-3.1/html/autohandler (original)
+++ rt/branches/rt-3.1/html/autohandler Tue Apr 6 22:41:02 2004
@@ -64,8 +64,7 @@
$r->content_type("text/html; charset=utf-8");
# If it's a noauth file, don't ask for auth.
-if ($m->base_comp->path =~ '^/+NoAuth/' ||
- $m->base_comp->path =~ '^/+REST/\d+\.\d+/NoAuth/')
+if ($m->base_comp->path =~ $RT::WebNoAuthRegex )
{
$m->call_next(%ARGS);
$m->abort();
More information about the Rt-commit
mailing list