0

While debugging a web application on Firefox web browser, I was surprised to see an SQL Database Query string showing up in the web-console log under Local-Storage sub-category autoSavedSql_xxxx. How is this even possible? Wrong echo at the PHP back-end? It even has the database-name and the search value! Any pointers to why this is happening will be highly appreciated - I don't think it is normal behavior to be doing this.

The backed uses PHP 7.2, MariaDB 10, on Rocky Linux 8; the front is on the usual mix plus jQuery. No other frameworks. Shown string:

SELECT * from 'real-table-name' WHRE Column-name = 'real-search-value';

I was not expecting to see these database search details on a web-console like this.

Ajowi
  • 449
  • 3
  • 12
  • 1
    What is an SQL Database Query string? An SQL query? Then it may be a debugging feature. Disable all debugging features and test against production mode. Double check the documentation of the application what it offers there. Otherwise it is always possible there is a flaw in the application and it then requires debugging. Software is known to have bugs, expect and embrace them. Take care. – hakre Dec 09 '22 at 07:29

0 Answers0