commit b0a231229bb240a8de62b6441cbfbe38cc63b1ec parent ad96aefa5d77b8f40ebda3589189f7bbfa40f81d Author: JayVii <jayvii[AT]posteo[DOT]de> Date: Sun, 19 May 2024 15:18:12 +0200 fix injection quotes Diffstat:
M | bin/git_update_repo_html.sh | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/git_update_repo_html.sh b/bin/git_update_repo_html.sh @@ -55,7 +55,7 @@ INJEXP="s/(>Refs<\/a>)/\1 \| <a href=\"\/${2}\/${3}\/exports\/\">Exports<\/a> /" find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E "${INJEXP}" -i {} \; # Replace "git clone" href -INJEXP="s/git clone <a href=\"(https:\/\/.*?\.git)\">/git clone <a href=javascript:navigator.clipboard.writeText(\"git clone \1\");alert(\"git clone \1 copied to your clipboard\");>/" +INJEXP="s/git clone <a href=\"(https:\/\/.*?\.git)\">/git clone <a href='javascript:navigator.clipboard.writeText(\"git clone \1\");alert(\"git clone \1 copied to your clipboard\")';>/" find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E "${INJEXP}" -i {} \; # link assets