Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Check for quotes in SplitNameValue and remove them if needed.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 24 Jan 2016 09:12:59 +0000 (09:12 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 24 Jan 2016 09:12:59 +0000 (09:12 +0000)
source/common/text.cpp

index 8237440..df64411 100644 (file)
@@ -172,6 +172,17 @@ PropertyNameValue SplitNameValue(string InputData){
                
        }
        
+       // Check if the value has quotes at the start and end.
+       // Remove them if this is the case.
+       
+       if (FinalNameValue.Value.front() == '\"' && 
+               FinalNameValue.Value.back() == '\"'){
+               
+               FinalNameValue.Value.erase(0, 1);
+               FinalNameValue.Value.erase((FinalNameValue.Value.size() - 1), 1);
+                       
+       }
+       
        return FinalNameValue;
        
 }
\ No newline at end of file
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy