Changeset 1242

Show
Ignore:
Timestamp:
07/25/08 22:20:08 (20 months ago)
Author:
ahu
Message:

make arguments parser for configuration file strip trailing spaces and tabs better

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/arguments.cc

    r1237 r1242  
    318318 
    319319    // strip trailing spaces 
    320     trim_right(line); 
    321     // strip leading spaces 
    322     if((pos=line.find_first_not_of(" \t\r\n"))!=string::npos) 
    323       line=line.substr(pos); 
     320    trim(line); 
    324321 
    325322    parseOne(string("--")+line,"",lax);