blob: 0f5cbc5d8f3e429fb0559a6fe775345148e78ae7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
From 416eb9b80480b4e07b2868e37fb56fff966b77c7 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Tue, 27 Jun 2017 11:40:09 +0200
Subject: [PATCH] drop ereg dependency, fix compat with PHP 7
---
plugins/password/drivers/cpanel_webmail.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/password/drivers/cpanel_webmail.php b/plugins/password/drivers/cpanel_webmail.php
index a34b6a1f8..8aabd3c6c 100644
--- a/plugins/password/drivers/cpanel_webmail.php
+++ b/plugins/password/drivers/cpanel_webmail.php
@@ -41,7 +41,7 @@ public function save($curpas, $newpass)
{
$user = $_SESSION['username'];
$userpwd = "$user:$curpas";
- list($login) = split('@', $user);
+ list($login) = explode('@', $user);
$data = array(
'email' => $login,
|