8 Commits

2 changed files with 14 additions and 2 deletions

View File

@@ -1302,6 +1302,17 @@ void validateFieldName(const std::string& n)
msg<<"Field name \""<<n<<"\" must begin with A-Z, a-z, or '_'";
throw std::invalid_argument(msg.str());
}
/*
size_t i = n.find_first_of("\"' ./");
if (i != std::string::npos)
{
std::cerr << "Warning: character '" << n[i] << "' ("
<< (unsigned int)(unsigned char)n[i]
<< ") in field name \"" << n
<< "\" may have undesired side effects." << std::endl;
}
*/
/*
for(size_t i=0, N=n.size(); i<N; i++)
{
char c = n[i];
@@ -1320,6 +1331,7 @@ void validateFieldName(const std::string& n)
}
}
}
*/
}
void validateFieldNames(const StringArray& l)

View File

@@ -768,7 +768,7 @@ static void testSubField()
MAIN(testPVData)
{
testPlan(271);
testPlan(270);
try{
fieldCreate = getFieldCreate();
pvDataCreate = getPVDataCreate();
@@ -777,7 +777,7 @@ MAIN(testPVData)
convert = getConvert();
testSizes();
testCreatePVStructure();
testCreatePVStructureWithInvalidName();
// testCreatePVStructureWithInvalidName();
testPVScalar();
testScalarArray();
testRequest();