mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
Fix #245 - 10
This commit is contained in:
parent
a8ed3c4205
commit
97df31c2ec
2 changed files with 9 additions and 1 deletions
|
|
@ -456,3 +456,11 @@ x
|
|||
<p>&#x0000041;</p>
|
||||
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
||||
|
||||
33: \x01 should be escaped all the time
|
||||
OPTIONS: {"enableEscape": true}
|
||||
//- - - - - - - - -//
|
||||
[x](\x01)
|
||||
//- - - - - - - - -//
|
||||
<p><a href="%01">x</a></p>
|
||||
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
||||
|
||||
|
|
|
|||
|
|
@ -709,7 +709,7 @@ func URLEscape(v []byte, resolveReference bool) []byte {
|
|||
n = i
|
||||
continue
|
||||
}
|
||||
if int(u8len) >= len(v) {
|
||||
if int(u8len) > len(v) {
|
||||
u8len = int8(len(v) - 1)
|
||||
}
|
||||
if u8len == 0 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue