Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiacalendar
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00eaa33
)
Check for quotes in SplitNameValue and remove them if needed.
author
Steve Brokenshire
<sbrokenshire@xestia.co.uk>
Sun, 24 Jan 2016 09:12:59 +0000
(09:12 +0000)
committer
Steve Brokenshire
<sbrokenshire@xestia.co.uk>
Sun, 24 Jan 2016 09:12:59 +0000
(09:12 +0000)
source/common/text.cpp
patch
|
blob
|
history
diff --git
a/source/common/text.cpp
b/source/common/text.cpp
index
8237440
..
df64411
100644
(file)
--- a/
source/common/text.cpp
+++ b/
source/common/text.cpp
@@
-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
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy