Upload Field Name Issue

3 posts by 2 authors in: Forums > CMS Builder
Last Post: about an hour ago   (RSS)

Hi Phil, 

Sorry about that, thanks for letting us know.  

Can you edit /cmsb/lib/ZenDB/Assert.php and search for validColumnName

Then replace that entire function with this: 

public static function validColumnName(string $identifier): void {
    if (!preg_match('/^[\w-]+$/', $identifier)) {
        throw new InvalidArgumentException("Invalid column name '$identifier', allowed characters: a-z, A-Z, 0-9, _, -");
    }
}
We'll update this for the next release as well.

Thanks!
Dave Edis - Senior Developer
interactivetools.com

Hi Dave,

That fixed it. 

Thank you...

Phil