Fixed strlen() call on postsale parameters that are potentially arrays (#1331)