[TikiWiki-commits] [Git][tikiwiki/tiki][master] [REF][FIX] Prevent malformed or invalid email to be scrambled
Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <696955522d41e_2c20b840173@gitlab-sidekiq-low-urgency-cpu-bound-v2-54948666b-7cxgb.mail> |
Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
def4af62 by David Maene at 2026-01-15T20:51:24+00:00
[REF][FIX] Prevent malformed or invalid email to be scrambled
---
* [REF] Refactor scrambleEmail() to delegate validation and remove feedback handling
* adding a return to prevent an email to be scrambled
* FIX space | Prevent maformed or invalid email to be scrambleded
* Prevent maformed or invalid email to be scrambleded
See merge request tikiwiki/tiki!7880
- - - - -
1 changed file:
- lib/tikilib.php
Changes:
=====================================
lib/tikilib.php
=====================================
@@ -5217,7 +5217,7 @@ class TikiLib extends TikiDb_Bridge
public static function scrambleEmail($email)
{
$ar = explode('@', $email);
- return self::protect_email($ar[0], $ar[1]);
+ return self::protect_email($ar[0] ?? '', $ar[1] ?? '');
}
//Updates a dynamic variable found in some object
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/def4af6261c23ba45266880ce338c1260a309d87
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/def4af6261c23ba45266880ce338c1260a309d87
You're receiving this email because of your account on gitlab.com.
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs