Skip to content

Commit 82d43b5

Browse files
committed
Merge pull request #61 from jelmerk/fix_xss
Fix cross site scripting (XSS) bug
2 parents 065624a + b995f89 commit 82d43b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browser.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<script id="location-bar-template" type="text/template">
3838
<form>
3939
<div class="input-append span12 location-bar-container">
40-
<input class="span11" id="appendedInputButton" type="text" value="<%= url %>">
40+
<input class="span11" id="appendedInputButton" type="text" value="<%= _.escape(url) %>">
4141
<button class="btn" type="submit">Go!</button>
4242
<span class="ajax-loader"></span>
4343
</div>

0 commit comments

Comments
 (0)