pluginkollektiv / snitch

Network monitor for WordPress. Connection overview for monitoring and controlling outgoing data traffic.
https://wordpress.org/plugins/snitch/
GNU General Public License v3.0
54 stars 21 forks source link

File paths missing slash in the Snitch table #54

Open pedro-mendonca opened 10 months ago

pedro-mendonca commented 10 months ago

Describe the bug The file path in the connections have no slashes.

To Reproduce Steps to reproduce the behavior:

  1. Go to Snitch page
  2. Check the file paths in the 'File' column, all have this wrong pattern:

imagem

Expected behavior The file paths are unreadable, should be kept the slashes as the pattern below:

imagem

stklcode commented 10 months ago

Interesting... I am unable to reproduce this issue, my paths look just as expected within a test container and on a real-world site.

snitch_urls

From the backslashes in your expected screenshot, I'd guess that you are running your WP site on a Windows machine, right?

Also notice that "my" paths are relativ wo the WP root, yours seem to be absolute or at least starting from some levels above WP :thinking: We should have a deeper look into the routine, I have a suspicion that the actual bug is not missing slashes in the output.

pedro-mendonca commented 10 months ago

Right, I'm testing on a Windows machine.