Skip to content

Commit 785ea67

Browse files
committed
Improve ls.php
1 parent 60b65b4 commit 785ea67

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

http/php/ls.php

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
<head>
33
<title>Directory listing</title>
44
</head>
5-
<body
6-
style="
7-
white-space: pre;
8-
font-family:
9-
Consolas,
10-
Ubuntu Mono,
11-
monospace;
12-
"
13-
>
14-
<?php echo `ls -lah`; ?>
5+
<body>
6+
<span
7+
style="
8+
white-space: pre;
9+
font-family:
10+
Consolas,
11+
Ubuntu Mono,
12+
monospace;
13+
"
14+
><?php echo htmlspecialchars(`ls -lah`); ?></span
15+
>
1516
</body>
1617
</html>

0 commit comments

Comments
 (0)