allow constant links with numeric 1 element arrays like [42]
This commit is contained in:
1 parent
c701e7e98e
commit
53a7d25923
1 file changed
+1
-2
@@ -2330,8 +2330,7 @@ long dbParseLink(const char *str, short ftype, dbLinkInfo *pinfo)
|
||||
}
|
||||
|
||||
/* Link may be an array constant */
|
||||
if (pstr[0] == '[' && pstr[len-1] == ']' &&
|
||||
(strchr(pstr, ',') || strchr(pstr, '"'))) {
|
||||
if (pstr[0] == '[' && pstr[len-1] == ']') {
|
||||
pinfo->ltype = CONSTANT;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user