Permalink
Browse files

Run `$uri` through `htmlspecialchars()` to prevent e.g. http://ole.mi…

  • Loading branch information...
mathiasbynens committed Apr 6, 2012
1 parent 170154f commit 590723b895a18cf18ab536d6d849b17b8c5e4632
Showing with 1 addition and 1 deletion.
  1. +1 −1 viewsource.php
View
@@ -43,7 +43,7 @@ function markupLinks($html,$uri)
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
- <title>Source of <?php echo $uri; ?></title>
+ <title>Source of <?php echo htmlspecialchars($uri); ?></title>
<style>
pre {
overflow: auto;

0 comments on commit 590723b

Please sign in to comment.