Skip to content

Commit

Permalink
quick fix for #1302: allowing in file-system paths
Browse files Browse the repository at this point in the history
A proper but more intrusive fix will be merged in devel.
  • Loading branch information
obilodeau committed Aug 15, 2012
1 parent 53c5f85 commit 3547973
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Bug Fixes
* FreeRADIUS watchdog updated for 3.5.0 changes (#1514)
* debian packages improvements regarding FreeRADIUS configuration
* cosmetic fix in `pfcmd service ... status` regarding pfdhcplistener (#1515)
* Guests are not able to confirm registration in some cases - take 2 (#1302)

--------------------------------------------------------------------------------
Version 3.5.0 released on 2012-08-01
Expand Down
4 changes: 2 additions & 2 deletions lib/pf/services/apache.pm
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ sub generate_httpd_conf {
if ($guest_regist_allowed && isenabled($Config{'guests_self_registration'}{'preregistration'})) {
# TODO hardcoded URL mentionned here is probably suboptimal for maintenance
# | is for a regexp "or" as this is pulled from a 'Location ~' statement
$tags{'allowed_from_all_urls'} .= '|/signup|/preregister';
$tags{'allowed_from_all_urls'} .= '|/signup|/guest-selfregistration.cgi|/preregister';
}
# /activate/email allowed if sponsor or email mode enabled
my $email_enabled = $guest_self_registration{$SELFREG_MODE_EMAIL};
my $sponsor_enabled = $guest_self_registration{$SELFREG_MODE_SPONSOR};
if ($guest_regist_allowed && ($email_enabled || $sponsor_enabled)) {
# TODO hardcoded URL mentionned here is probably suboptimal for maintenance
# | is for a regexp "or" as this is pulled from a 'Location ~' statement
$tags{'allowed_from_all_urls'} .= '|/activate/email';
$tags{'allowed_from_all_urls'} .= '|/activate/email|/email_activation.cgi';
}

my ($pt_http, $pt_https, $remediation);
Expand Down

0 comments on commit 3547973

Please sign in to comment.