⬆️ Update dependencies
This commit is contained in:
+2
-2
@@ -945,7 +945,7 @@ func (d *Decoder) ungetc(b byte) {
|
||||
d.offset--
|
||||
}
|
||||
|
||||
var entity = map[string]int{
|
||||
var entity = map[string]rune{
|
||||
"lt": '<',
|
||||
"gt": '>',
|
||||
"amp": '&',
|
||||
@@ -1040,7 +1040,7 @@ Input:
|
||||
d.buf.WriteByte(';')
|
||||
n, err := strconv.ParseUint(s, base, 64)
|
||||
if err == nil && n <= unicode.MaxRune {
|
||||
text = string(n)
|
||||
text = string(rune(n))
|
||||
haveText = true
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -323,7 +323,7 @@ func (h *Handler) handleCopyMove(w http.ResponseWriter, r *http.Request) (status
|
||||
if err != nil {
|
||||
return http.StatusBadRequest, errInvalidDestination
|
||||
}
|
||||
if u.Host != r.Host {
|
||||
if u.Host != "" && u.Host != r.Host {
|
||||
return http.StatusBadGateway, errInvalidDestination
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user