Improper server validation in Alfresco Data list when new item is created

cancel
Showing results for 
Search instead for 
Did you mean: 
Balaji123
Member II

Improper server validation in Alfresco Data list when new item is created

Hi,

We have created the custom datalist in alfresco by using model properties. I don't want to insert any '<script >' tag in datalist while inserting a item. I want to prevent the script related tags or any script to be shown in datalist. This is considered as security violation. So how can i resolve this issue. Please find below screen shot for better understanding. 

Improper Server Validation.JPG

 

1 Reply
kintu_barot
Senior Member

Re: Improper server validation in Alfresco Data list when new item is created

You could use the REGEX constraint for the property field of the datalist.

Have a look at the below link, it has the example of REGEX implemented in the content model. The same can be implemented for the datalist as well. You just need to find a valid expression for your constraint.

https://docs.alfresco.com/6.1/references/dev-extension-points-content-model-define-and-deploy.html

Regards,
Kintu