mirror of
https://codeberg.org/flpolyaplus/aplus.git
synced 2024-11-24 10:20:30 -05:00
fix "LTI signature verification failed" message
Some of the form values being sent in the POST request had HTML entities that needed to be unescaped.
This commit is contained in:
parent
89c2e2b38e
commit
aa816a646e
3
aplus.go
3
aplus.go
@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"html"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
@ -41,7 +42,7 @@ func parse_form(form_html string) url.Values {
|
||||
for _, input := range inputs {
|
||||
// Extract field name and value
|
||||
name := extract_attribute(input, "name")
|
||||
value := extract_attribute(input, "value")
|
||||
value := html.UnescapeString(extract_attribute(input, "value"))
|
||||
|
||||
if name != "" {
|
||||
form_values.Add(name, value)
|
||||
|
Loading…
Reference in New Issue
Block a user