mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-09 10:50:42 +00:00
Encode input correctly
This commit is contained in:
parent
27a2c45aa2
commit
098be7a75e
@ -17,6 +17,7 @@ import org.apache.commons.lang3.tuple.Pair;
|
|||||||
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.net.URLDecoder;
|
import java.net.URLDecoder;
|
||||||
|
import java.net.URLEncoder;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -99,7 +100,8 @@ public class MainViewImpl extends AppLayout
|
|||||||
Pair.of(entry.getKey(), List.of(entry.getValue()))
|
Pair.of(entry.getKey(), List.of(entry.getValue()))
|
||||||
).collect(Collectors.toMap(Pair::getLeft, Pair::getRight,
|
).collect(Collectors.toMap(Pair::getLeft, Pair::getRight,
|
||||||
(existing, replacement) -> existing, TreeMap::new)));
|
(existing, replacement) -> existing, TreeMap::new)));
|
||||||
UI.getCurrent().navigate(TypeInferenceView.ROUTE + "/" + lambdaTerm, qp);
|
UI.getCurrent().navigate(TypeInferenceView.ROUTE + "/"
|
||||||
|
+ URLEncoder.encode(lambdaTerm, StandardCharsets.UTF_8), qp);
|
||||||
}
|
}
|
||||||
|
|
||||||
private String decodeURL(String encodedUrl) {
|
private String decodeURL(String encodedUrl) {
|
||||||
|
Loading…
Reference in New Issue
Block a user