• seang96@spgrn.com
    link
    fedilink
    English
    arrow-up
    17
    ·
    10 months ago

    I don’t think so, but it was in response to some smart people developing their government website with the database stored basically in the HTML of the website if I remember correctly. A good Samaritan reported it and was basically charged with hacking the state.

    • pixelmeow@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      10 months ago

      The problem with this is that reading the generated HTML behind a page that has been served to your browser does not prove that data was stored in an HTML source file. The data is inserted into the page while it’s being served to the browser. That’s what the JavaScript does after it requests the data from the backend code, which gets the data from the database (or whatever storage is being used) and sends it back to the JavaScript, which puts it in the page.

      Saving data in source HTML files would mean every possible combination of data anyone might request must be saved in its own separate file, which is definitely not how web development is done. Laws should not be made by people who don’t know what they’re talking about.

    • Mario_Dies.wav@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      A good Samaritan reported it and was basically charged with hacking the state

      Wait, really? What would I search to read more about this? Do you remember which state?