Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sympa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
riseup
sympa
Commits
59581e13
Commit
59581e13
authored
6 years ago
by
taggart
Browse files
Options
Downloads
Patches
Plain Diff
start adding 6.2.32 patches
parent
14d57e0c
Branches
Branches containing commit
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
6.2.32/patches/02_disable_copy_list.patch
+15
-0
15 additions, 0 deletions
6.2.32/patches/02_disable_copy_list.patch
6.2.32/patches/06_2685_owner_address_set_to_special_address.patch
+29
-0
29 additions, 0 deletions
...atches/06_2685_owner_address_set_to_special_address.patch
with
44 additions
and
0 deletions
6.2.32/patches/02_disable_copy_list.patch
0 → 100644
+
15
−
0
View file @
59581e13
--- a/sympa-6.2.32/src/cgi/wwsympa.fcgi.in 2018-04-18 20:59:38.530745015 -0700
+++ b/sympa-6.2.32/src/cgi/wwsympa.fcgi.in 2018-04-22 03:45:38.697193273 -0700
@@ -10902,8 +10902,10 @@
# Compat. <= 6.2.20
sub do_copy_list {
- $in{'mode'} = 'copy';
- goto &do_move_list; # "&" is required.
+ # mysteriously reject copy list requests - this needs a real solution
+ &report::reject_report_web('intern','Unable_to_copy_list', {'new_listname' => $in{'new_listname'}},
+ $param->{'action'},$list,$param->{'user'}{'email'},$robot);
+ return undef;
}
# In order to rename a list you must be list owner and you must be allowed to
This diff is collapsed.
Click to expand it.
6.2.32/patches/06_2685_owner_address_set_to_special_address.patch
0 → 100644
+
29
−
0
View file @
59581e13
--- a/sympa-6.2.32/src/cgi/wwsympa.fcgi.in 2018-04-18 20:59:38.530745015 -0700
+++ b/sympa-6.2.32/src/cgi//wwsympa.fcgi.in 2018-04-22 03:56:15.973309951 -0700
@@ -10457,6 +10457,26 @@
Sympa::WWW::Report::notice_report_web('subscribers_noticed_deleted_topics',
{}, $param->{'action'});
}
+ ## Checking that list owner address is not set to one of the special
+ ## addresses:
+ if (exists $changed{'owner'}) {
+ my $list = $param->{'list'};
+ my @special = ("$list-owner\@$robot",
+ "$list-editor\@$robot", "$list-admin\@$robot",
+ "$list-admin\@$robot", "$list-request\@$robot",
+ "$list-bounce\@$robot", "$list-subscribe\@$robot",
+ "$list-unsubscribe\@$robot");
+ foreach my $owner (@{$new_admin->{'owner'}}) {
+ if (grep (/^$owner->{'email'}$/, @special)) {
+ ## generate an error and return
+ &report::reject_report_web('user','incorrect_email',{'email'=>$owner->{'email'}},$param->{'action'},$list);
+ &wwslog('info','do_edit_list: Reserved email address %s', $owner->{'email'});
+ &web_db_log({'status' => 'error', 'error_type' => 'incorrect_email'}, 'parameters' => $owner->{'email'});
+ return undef;
+ }
+ }
+ }
+
# For changed owner/editor
_notify_added_admin($config);
#my $owner_update = 1
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment