View Issue Details

IDProjectCategoryView StatusLast Update
0004095phpList 3 applicationAdmin Managementpublic18-02-08 14:17
Reporterjvarrone Assigned To 
Status resolvedResolutionfixed 
Product Version2.10.1 
Target Version2.10.7Fixed in Version2.10.2 
Summary0004095: Blacklisted status incorrectly reported.
DescriptionThe blacklisted status on the user details page is reported incorrectly. It's apparently pulling from the blacklisted field in the user table rather than checking the user's email against those in the blacklist table. The message at the bottom of the page "user is blacklisted" operates correctly because it relies on the "isBlackListed()" function.
Additional Informationhere is the fix. In the admin->commonlib->pages->user.php file add the code between the #---------'s (file attached as well).

 while (list ($key,$val) = each ($struct)) {
    list($a,$b) = explode(":",$val[1]);
    if ($key == "confirmed") {
      if (!$require_login || ($require_login && isSuperUser())) {
        printf('<tr><td>%s (1/0)</td><td><input type="text" name="%s" value="%s" size=5></td></tr>'."\n",$GLOBALS['I18N']->get($b),$key,$user[$key]);
      } else {
    } elseif ($key == "password" && ENCRYPTPASSWORD) {
      printf('<tr><td>%s (%s)</td><td><input type="text" name="%s" value="%s" size=30></td></tr>'."\n",$GLOBALS['I18N']->get('encrypted'),$val[1],$key,"");

    # JV:----------------------------------------------------
    # added test to dynamically check blacklisted status rather than
    # reporting what's in the blacklisted field in user table
    } elseif ($key == "blacklisted") {
    # JV:----------------------------------------------------
    } else {
      if ($key != "unique" && $key != "index" && $key != "primary key")
TagsNo tags attached.


related to 0003721 closed phplist 2.10.x 


20-09-05 23:11


user.php (15,476 bytes)