summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpiny/lib/Piny/Repo.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/libpiny/lib/Piny/Repo.pm b/libpiny/lib/Piny/Repo.pm
index 7362d4e..0ca2631 100644
--- a/libpiny/lib/Piny/Repo.pm
+++ b/libpiny/lib/Piny/Repo.pm
@@ -802,9 +802,9 @@ sub _build_apache_global_config {
sub _build_apache_secure_config {
my ( $s ) = @_;
- if ( $s->config->core_sharedrepository eq "0666" ) or ( $s->config->core_sharedrepository =~ /^(0664|all|everybody|world)$/ ) {
+ if ( $s->config->core_sharedrepository eq "0666" or $s->config->core_sharedrepository =~ /^(0664|all|everybody|world)$/ ) {
return ( "Redirect /read/" . $s->name . " " . $s->ikiwiki_url . "\n" );
- } elsif ( $s->config->core_sharedrepository =~ /^(0660|true|1|group)$/ ) or ( $s->config->core_sharedrepository =~ /^(0640|false|0)$/ ) {
+ } elsif ( $s->config->core_sharedrepository =~ /^(0660|true|1|group)$/ or $s->config->core_sharedrepository =~ /^(0640|false|0)$/ ) {
if ( $s->config->piny_ikiwiki =~ /^(1|true)$/ ) {
return ( "Redirect /cgit/" . $s->name . " /auth/cgit/" . $s->name . "\n" );
} elsif ( $s->config->piny_ikiwiki =~ /^(0|false)$/ ) {
@@ -820,15 +820,15 @@ sub _build_apache_secure_config {
sub _build_apache_www_config {
my ( $s ) = @_;
- if ( $s->config->core_sharedrepository eq "0666" ) or ( $s->config->core_sharedrepository =~ /^(0664|all|everybody|world)$/ ) {
+ if ( $s->config->core_sharedrepository eq "0666" or $s->config->core_sharedrepository =~ /^(0664|all|everybody|world)$/ ) {
if ( $s->config->piny_ikiwiki =~ /^(1|true)$/ ) {
return ( "\n" );
} elsif ( $s->config->piny_ikiwiki =~ /^(0|false)$/ ) {
- return ( "Redirect /" . $s->name . " " . $s->cgit_url "/tree\n" );
+ return ( "Redirect /" . $s->name . " " . $s->cgit_url . "/tree\n" );
} else {
die ( $s->config->piny_ikiwiki . " is an unhandled value!" );
};
- } elsif ( $s->config->core_sharedrepository =~ /^(0660|true|1|group)$/ ) or ( $s->config->core_sharedrepository =~ /^(0640|false|0)$/ ) {
+ } elsif ( $s->config->core_sharedrepository =~ /^(0660|true|1|group)$/ or $s->config->core_sharedrepository =~ /^(0640|false|0)$/ ) {
return ( "Redirect /" . $s->name . " " . $s->ikiwiki_url . "\n" );
} else {
die ( $s->config->core_sharedrepository . " is an unhandled value!" );