From 7752eb6f5ad9bb068179af0e6ec04895fe83ec79 Mon Sep 17 00:00:00 2001 From: Yasuaki Uechi Date: Wed, 5 Feb 2020 17:28:22 +0900 Subject: [PATCH] fix: sanitize input --- web/src/App.tsx | 13 +++++++++---- web/src/components/Form.tsx | 4 ++-- web/src/util/text.ts | 4 ++++ 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/web/src/App.tsx b/web/src/App.tsx index 63ba56d..af1cc96 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -2,6 +2,7 @@ import React from 'react'; import styled, {createGlobalStyle} from 'styled-components'; import {Helmet} from 'react-helmet'; import {useTranslation} from 'react-i18next'; +import {Switch, Route, useParams, Redirect} from 'react-router-dom'; import Welcome from './components/Welcome'; import Form from './components/Form'; @@ -10,18 +11,21 @@ import Footer from './components/Footer'; import {mobile} from './util/css'; import {isStandalone} from './util/pwa'; -import {Switch, Route, useParams} from 'react-router-dom'; +import {sanitize} from './util/text'; export default function App() { return ( <> + + + - - + +