Changeset 552

Show
Ignore:
Timestamp:
04/01/06 23:23:54 (3 years ago)
Author:
hipplej
Message:

Ensure ServerPage? only accepts valid exit policy IP addresses.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/config/serverpage.cpp

    r550 r552  
    200200ServerPage::addPolicy() 
    201201{ 
    202   /* They have to at least enter something as an IP address */ 
    203   if (ui.lineExitAddress->text().isEmpty()) { 
     202  /* They must enter a valid address */ 
     203  QString address = ui.lineExitAddress->text(); 
     204  int i; 
     205  if (ui.lineExitAddress->validator()-> 
     206      validate(address, i) != QValidator::Acceptable) { 
    204207    return; 
    205208  }