Language Change ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
21 Feb 2023

Adds a trim so that if the entries are in the form example.com; example2.com then example2.com will still be blocked

Improved the description It is not a list of email addresses but of email addresses or parts of it (e.g. domains).

Pull Request for Issue #39900 .

Actual result BEFORE applying this Pull Request

the second domain is not banned because of the leading space

Expected result AFTER applying this Pull Request

both domains are banned

Updated

the same change has been made to banned words and banned subjects

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 21 Feb 2023
Category Administration Language & Strings Front End com_contact
avatar brianteeman brianteeman - open - 21 Feb 2023
avatar brianteeman brianteeman - change - 21 Feb 2023
Status New Pending
avatar brianteeman brianteeman - change - 21 Feb 2023
Labels Added: Language Change ?
avatar brianteeman brianteeman - change - 22 Feb 2023
The description was changed
avatar brianteeman brianteeman - edited - 22 Feb 2023
avatar Fedik Fedik - test_item - 22 Feb 2023 - Tested successfully
avatar Fedik
Fedik - comment - 22 Feb 2023

I have tested this item successfully on 8737f9a


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39907.

avatar sandewt
sandewt - comment - 22 Feb 2023

Do the following files also need to be changed?

if ($banned) {
foreach (explode(';', $banned) as $item) {
if ($item != '' && StringHelper::stristr($value, $item) !== false) {
return false;
}
}
}

if ($banned) {
foreach (explode(';', $banned) as $item) {
if ($item != '' && StringHelper::stristr($value, $item) !== false) {
return false;
}
}
}

avatar brianteeman
brianteeman - comment - 22 Feb 2023

you can change them if you want in their own pr. this pr is about the email address

avatar sandewt
sandewt - comment - 22 Feb 2023

this pr is about the email address

You changed the file of the banned words

* Method to test a message for banned words

avatar Fedik
Fedik - comment - 22 Feb 2023

@sandewt is right, @brianteeman can you please edit ContactEmailRule.php
and ContactEmailSubjectRule.php also ;)

avatar brianteeman
brianteeman - comment - 22 Feb 2023

oh - shoot - changed the wrong file ;)

856ba4d 22 Feb 2023 avatar brianteeman more
avatar sandewt sandewt - test_item - 22 Feb 2023 - Tested successfully
avatar sandewt
sandewt - comment - 22 Feb 2023

I have tested this item successfully on 856ba4d

Tested:

  1. Banned Email Address
  2. Banned Subject
  3. Banned Text
    This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39907.
avatar sandewt
sandewt - comment - 22 Feb 2023

@brianteeman I think it would be useful to expand the test description, see my previous comment above

[EDIT including the title text of this pr]

avatar viocassel viocassel - test_item - 22 Feb 2023 - Tested successfully
avatar viocassel
viocassel - comment - 22 Feb 2023

I have tested this item successfully on 856ba4d


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39907.

avatar alikon alikon - change - 22 Feb 2023
Status Pending Ready to Commit
avatar alikon
alikon - comment - 22 Feb 2023

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39907.

avatar brianteeman brianteeman - change - 22 Feb 2023
Title
[4.2] Contact form banned emails
[4.2] Contact form banned emails and content
avatar brianteeman brianteeman - edited - 22 Feb 2023
avatar brianteeman brianteeman - change - 22 Feb 2023
The description was changed
avatar brianteeman brianteeman - edited - 22 Feb 2023
avatar roland-d roland-d - change - 22 Feb 2023
Labels Added: ?
avatar roland-d roland-d - close - 22 Feb 2023
avatar roland-d roland-d - merge - 22 Feb 2023
avatar roland-d
roland-d - comment - 22 Feb 2023

Thank you.

avatar roland-d roland-d - change - 22 Feb 2023
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-02-22 15:04:36
Closed_By roland-d
Labels Removed: ?
avatar brianteeman
brianteeman - comment - 22 Feb 2023

thanks

Add a Comment

Login with GitHub to post a comment