No Code Attached Yet
avatar anibalsanchez
anibalsanchez
3 Sep 2021

Steps to reproduce the issue

  1. We have a plugin name that has the string "Google's structured data".
  2. com_joomlaupdate generates this JavaScript var declaration:
var nonCoreCriticalPlugins = '...."3":{"name":"System - Perfect Publisher for Google's structured data \/ Social Profile Links"....';
  1. The JSON structure is correctly defined including the ' character, but the JavaScript is invalid when the variable is assigned.
  2. Uncaught SyntaxError: Unexpected identifier

Expected result

Support of plugin names that include a ' character.

Actual result

Browser console error: Uncaught SyntaxError: Unexpected identifier

System information (as much as possible)

Joomla 3.10.1 and a plugin with a name that includes a ' character.

Additional comments

avatar anibalsanchez anibalsanchez - open - 3 Sep 2021
avatar anibalsanchez anibalsanchez - change - 3 Sep 2021
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 3 Sep 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 3 Sep 2021
avatar alikon
alikon - comment - 3 Sep 2021

better to merge with #35406 ?

avatar anibalsanchez
anibalsanchez - comment - 3 Sep 2021

Yes, it is the same issue.

avatar anibalsanchez anibalsanchez - change - 3 Sep 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-09-03 18:08:03
Closed_By anibalsanchez
avatar anibalsanchez anibalsanchez - close - 3 Sep 2021

Add a Comment

Login with GitHub to post a comment