MOON
Server: Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
System: Linux csr818.wilogic.com 2.6.18-419.el5xen #1 SMP Fri Feb 24 22:50:37 UTC 2017 x86_64
User: digitals (531)
PHP: 5.4.45
Disabled: NONE
Upload Files
File: //proc/self/root/proc/self/root/scripts.20110531.215904.25158/pkgacct.rej
***************
*** 941,953 ****
  ## pass: roundcube.db is in homedir.tar. The logic reads better if this is blank block.
              }
              elsif ( $> == 0 && Cpanel::MysqlUtils::db_exists('roundcube') && _db_needs_backup( 'mysql', 'roundcube', $mysqldatadir, "$work_dir/mysql-timestamps/roundcube", [$round_db], \%LASTUPDATETIMES ) ) {
-                 
-                 
-                 my @dns_regex_list = grep( !/(?:^www\.|\*)/i, @DNS );
-                 my $dnslist = join( '|', @dns_regex_list );
-                 $dnslist =~ s/\./\\./g;
  ## case 16846: adding "username = '$user'" to ensure the system users that use webmail are converted
-                 my $ids = Cpanel::SafeRun::Simple::saferun($mysql,'roundcube','-B','-ss','-e',"SELECT user_id FROM users WHERE username REGEXP '@(${dnslist})\$' or username = '$user'");
                  if ($ids) {
                      $ids = join ',', split /\n/, $ids;
  
--- 937,944 ----
  ## pass: roundcube.db is in homedir.tar. The logic reads better if this is blank block.
              }
              elsif ( $> == 0 && Cpanel::MysqlUtils::db_exists('roundcube') && _db_needs_backup( 'mysql', 'roundcube', $mysqldatadir, "$work_dir/mysql-timestamps/roundcube", [$round_db], \%LASTUPDATETIMES ) ) {
  ## case 16846: adding "username = '$user'" to ensure the system users that use webmail are converted
+                 my $ids = Cpanel::SafeRun::Simple::saferun($mysql,'roundcube','-B','-ss','-e',"SELECT user_id FROM users WHERE username REGEXP '@(${sql_dnslist})\$' or username = '$user'");
                  if ($ids) {
                      $ids = join ',', split /\n/, $ids;