Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
103b8da
)
ecere/com/dataTypes: OnGetString() - Not escaping or quoting strings except for gener...
author
Jerome St-Louis
<jerome@ecere.com>
Tue, 26 Apr 2016 02:31:51 +0000
(22:31 -0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Sat, 2 Jul 2016 20:41:04 +0000
(16:41 -0400)
- *needClass should be true when required
ecere/src/com/dataTypes.ec
patch
|
blob
|
history
diff --git
a/ecere/src/com/dataTypes.ec
b/ecere/src/com/dataTypes.ec
index
5a61add
..
7c27042
100644
(file)
--- a/
ecere/src/com/dataTypes.ec
+++ b/
ecere/src/com/dataTypes.ec
@@
-770,7
+770,8
@@
static const char * OnGetString(Class _class, void * data, char * tempString, vo
strcat(tempString, " = ");
}
- if(!strcmp(memberType.name, "char *"))
+ // Only quote and escape for data serialization purposes
+ if(needClass && *needClass && !strcmp(memberType.name, "char *"))
{
int len = strlen(tempString);
int c;