View Issue Details

IDProjectCategoryView StatusLast Update
0004095phplist applicationUser Managementpublic18-02-08 14:17
Reporterjvarrone 
PrioritynormalSeverityminorReproducibilityalways
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 {
        printf('<tr><td>%s</td><td>%s</td></tr>',$b,$user[$key]);
      }
    } 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") {
      printf('<tr><td>%s</td><td>%s</td></tr>BL',$b,isBlackListed($user['email']));
    # JV:----------------------------------------------------
    } else {
      if ($key != "unique" && $key != "index" && $key != "primary key")
TagsNo tags attached.

Relationships

related to 0003721 closed phplist 2.10.x 

Activities

20-09-05 22:11

 

user.php (15,476 bytes)