Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix minor output escaping issue.

  • Loading branch information...
commit ff73acb38816cb3a544e1e43b1dded751609d8b6 1 parent 7b575c6
Neal Poole authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  index.php
View
2  index.php
@@ -52,7 +52,7 @@
$fileName = $_patch[count($_patch)-1];
$filePath = substr($patch, 0, (strlen($patch)-strlen($fileName)));
- $jsVar = 'var directAccess = {"link":"patch", "lang":"en", "path":"'.$filePath.'", "name":"'.$fileName.'", "project":"'.$_project.'"};';
+ $jsVar = 'var directAccess = {"link":"patch", "lang":"en", "path":"'.htmlspecialchars($filePath).'", "name":"'.htmlspecialchars($fileName).'", "project":"'.htmlspecialchars($_project).'"};';
} else {
$jsVar = 'var directAccess = false;';
Please sign in to comment.
Something went wrong with that request. Please try again.