Changeset 1c4b1ae


Ignore:
Timestamp:
07/11/13 10:50:45 (14 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
fb7fe1b
Parents:
360bff2
Message:

Fix a bug getting <key>=<value> from SH files without quotes around

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/libpcbsd/utils/utils.cpp

    r1620346 r1c4b1ae  
    148148        line.replace(envVal + "=", ""); 
    149149 
    150         if ( line.indexOf('"') == 0 ) 
     150        if ( line.indexOf('"') == 0 ) { 
    151151           line = line.section('"', 1, 1); 
    152         else 
    153            line = line.section(' ', 1, 1); 
     152           line = line.section('"', 0, 0); 
     153        } 
    154154 
    155155        confFile.close(); 
    156         return line; 
     156        return line.simplified(); 
    157157     } 
    158158  } 
Note: See TracChangeset for help on using the changeset viewer.