d14na / zerovue

ZeroVue :. Lite Client for Zeronet
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

Content.json failing validation #2

Open d14na opened 5 years ago

d14na commented 5 years ago

So far the only zite to fail validation is 1SiTEs2D3rCBxeMoLHXei2UYqFcxctdwB.

{
 "address": "1SiTEs2D3rCBxeMoLHXei2UYqFcxctdwB",
 "background-color": "#ECF1F5",
 "cloneable": true,
 "description": "Sites of ZeroNet",
 "domain": "Sites.ZeroNetwork.bit",
 "files": {
  "css/all.css": {
   "sha512": "ce46d6412c853bd3aed52d5fd96eb4367bc7d03471f7069d7ae4b5febbdd4b14",
   "size": 120350
  },
  "data-default/users/content-default.json": {
   "sha512": "914a2059851195cbe7f23b5916052717267b8abc4a1a1f4a5c665f4e9021471f",
   "size": 718
  },
  "data-default/users/stats.json": {
   "sha512": "cbb51df6cd0de803ac254fb3540d6898d3ff333b9e65b426fc7175302114de48",
   "size": 22
  },
  "dbschema.json": {
   "sha512": "95dee8798b26d729501eb473f6ec9c6802b468c2e3415de0a3c820723a9c5560",
   "size": 1914
  },
  "img/logo.png": {
   "sha512": "1b9bf2d0fc7917335b698c0f2a3f902a86b5a9a917a945bbaa04bc82f2a8645f",
   "size": 2383
  },
  "index.html": {
   "sha512": "1f283ae668dd87c2003fdf985f6cf5697b75254be897c828e7df2ef6a5832b0f",
   "size": 619
  },
  "js/all.js": {
   "sha512": "7970746634c9d5f3a9b709a579d3b19cf72736bd4f14743ddb4182a06453b6ff",
   "size": 125585
  },
  "languages/es.json": {
   "sha512": "bfef9fe8c9575b45bb098b84d48c2316a9d8f7e4443911af839cc76c7c9ca35f",
   "size": 825
  },
  "languages/zh-tw.json": {
   "sha512": "2652c2927fc68380c3f4baa60776be1005c66a55dac79bbb64e9686e20e52fcb",
   "size": 774
  },
  "languages/zh.json": {
   "sha512": "235884740efefc6cd95ab0fa604a58e4fcd1481106e153ba04d594326b1852b1",
   "size": 768
  }
 },
 "ignore": "((js|css)/(?!all.(js|css))|data/.*)",
 "includes": {
  "data/users/content.json": {
   "signers": [],
   "signers_required": 1
  }
 },
 "inner_path": "content.json",
 "modified": 1517144285,
 "postmessage_nonce_security": true,
 "settings": {
  "categories": [
   [2, "Blogs"],
   [9, "Services"],
   [1, "Forums, Boards"],
   [10, "Chat"],
   [6, "Video, Image"],
   [8, "Guides"],
   [7, "News"],
   [5, "Politics"],
   [4, "Porn"],
   [3, "Other"]
  ],
  "languages": ["da", "de", "en", "es", "fr", "hu", "it", "nl", "pl", "pt", "pt-br", "ru", "tr", "uk", "zh", "zh-tw", "multi"]
 },
 "signers_sign": "GxHBPHPG8y3EJjZTNmvNuDYfl4/lcdE99zbdS06DqLJrTm9VmI26FMgbkT47JwEFyHD4PaE2du1tUJdU24qIqtQ=",
 "signs": {
  "1SiTEs2D3rCBxeMoLHXei2UYqFcxctdwB": "G2o/I43jDib37dpEFFgOXC3wkLN/ePyo1ZoC4EflmyGfVR22JTL5xu/MpevyXofdV3gR2hFD4gqsIneXvijy+QE="
 },
 "signs_required": 1,
 "title": "ZeroSites",
 "translate": ["js/all.js"],
 "zeronet_version": "0.6.1"
}

Examine the settings.categories and settings.languages as these are not typically and could be causing a glitch in JSON.stringify(_config)... or ZeroUtils.escapeUnicode(_config) formatting.