Skip to content

Commit

Permalink
Remove encodeURI
Browse files Browse the repository at this point in the history
Already using encodingURIComponent for unsafe string.
  • Loading branch information
jloleysens committed Apr 28, 2020
1 parent e6b8489 commit 3cd5d76
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ export const PipelinesList: React.FunctionComponent<RouteComponentProps> = ({
}, [pipelineNameFromLocation, data]);

const goToEditPipeline = (name: string) => {
history.push(encodeURI(`${BASE_PATH}/edit/${encodeURIComponent(name)}`));
history.push(`${BASE_PATH}/edit/${encodeURIComponent(name)}`);
};

const goToClonePipeline = (name: string) => {
history.push(encodeURI(`${BASE_PATH}/create/${encodeURIComponent(name)}`));
history.push(`${BASE_PATH}/create/${encodeURIComponent(name)}`);
};

const goHome = () => {
setShowFlyout(false);
history.push(encodeURI(BASE_PATH));
history.push(BASE_PATH);
};

let content: React.ReactNode;
Expand Down

0 comments on commit 3cd5d76

Please sign in to comment.