Project

General

Profile

Actions

Bug #7880

closed

Validation rule JSON encoding double escaping

Added by krileon over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
12 March 2020
Due date:
% Done:

100%

Estimated time:

Description

If add slashes is called on a validation language string with slashes already in the string it double encodes and cancels the encoding. This results in an invalid JSON string which breaks JS when the validation rules are output. The add slashes call is not necessary as we're already encoding to JSON.

https://www.joomlapolis.com/forum/153-professional-member-support/242194-tabs-layout-in-community-builder-is-no-longer-working-showing-up-on-site?start=6

Actions

Also available in: Atom PDF