RSS Feed/News JSON-LD in helper_js_global uses escape('js'), producing invalid JSON on IDN board URLs

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
32,917
Points
823

Reputation:

My AI found something. Or I found the error in Google search console, AI the problem and fix.

AI report follows:
Affected version: 2.3.12

Summary

The WebSite/SearchAction JSON-LD in the helper_js_global template uses:

Code:

escape('js')

for URLs inside JSON.

The JS escaper modifies a double hyphen by inserting a backslash. This produces invalid JSON when a URL contains a double hyphen.

This affects IDN hostnames in punycode, since they contain the xn-- prefix...

Read more

Continue reading...
 
Status
Not open for further replies.
Top