What is best used for a dot slash?

I see a large number of errors in our log files related to using the dotted "./" in the href attribute of the anchor tag. This happens only when the hit comes from the java client.

HTML DOCUMENT
<a href="./myPage.php">Link to a dot-slash file</a>

ACCESS ENTRANCE IN LOGISTICS
my.domain.com 123.456.789.012 - - [26/Jan/2010:14:17:15 -0500] "GET /legal/./myPage.php HTTP/1.1" 200 5295 "-" "Java/1.6.0_14"

ERROR ENTRY ERROR
[Tue Jan 26 14:17:15 2010] [error] [client 123.456.789.012] request failed: erroneous characters after protocol string: GET /legal/\\" + gaJsHost + \\"google-analytics.com/ga.js HTTP/1.1

Is it better to use or not use dot slash?

+4
source share
1 answer

As far as I know, the dot-slash is used only on * nix, and not on the Internet. I would advise against using it, also because (afaik)

 href="./example.php" 

pretty much coincides with

 href="example.php" 
+7
source

Source: https://habr.com/ru/post/1299485/


All Articles