Changeset 647

Show
Ignore:
Timestamp:
06/25/09 09:18:03 (15 months ago)
Author:
mclight77
Message:

Fixed urlgroup initialization.
Template with single blocked user was not listed in http_access.

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/NEWS

    r646 r647  
    163163090624 
    164164  ИсправлеМа кПЌпОляцОя плагОМа fsusage в FreeBSD (прПвереМП Ма 7.2) 
     165090625 
     166  ИсправлеМа ПшОбка фПрЌОрПваМОя группы url аЎресПв. 
     167  ПрО встрПеММПЌ реЎОректПре шаблПМ с ПЎМОЌ ПтключеММыЌ пПльзПвателеЌ 
     168  Ме прПпОсывался в разЎел http_access. 
  • trunk/src/squidconf.cpp

    r636 r647  
    312312                    } 
    313313 
    314                   if (SAMSUserList::activeUsersInTemplate (tpl->getId ()) > 0) 
     314                  if (redir_type == Proxy::REDIR_INTERNAL) 
     315                    fout << "http_access allow Sams2Template" << tpl->getId () << endl; 
     316                  else if (SAMSUserList::activeUsersInTemplate (tpl->getId ()) > 0) 
    315317                    fout << "http_access allow Sams2Template" << tpl->getId () << restriction.str() << endl; 
    316318                } 
  • trunk/src/urlgroup.cpp

    r644 r647  
    9797  DEBUG (DEBUG8, "[" << this << "->" << __FUNCTION__ << "(" << url << ")]"); 
    9898 
     99/* 
    99100  if (_type == UrlGroup::ACC_REGEXP || _type == UrlGroup::ACC_REPLACE || _type == UrlGroup::ACC_REDIR) 
    100101    { 
     102*/ 
    101103#ifdef USE_PCRECPP 
    102104      pcrecpp::RE *re; 
     
    131133        } 
    132134#endif 
     135/* 
    133136    } 
    134137  else 
    135138    _list.push_back (url); 
     139*/ 
    136140} 
    137141 
     
    170174      for (idx = 0; idx < _patterns.size (); idx++) 
    171175        { 
     176          DEBUG (DEBUG9, "[" << this << "->" << __FUNCTION__ << "] Checking rule " << _list[idx]); 
    172177#ifdef USE_PCRECPP 
    173178          if (_patterns[idx]->PartialMatch (str))