From 9eb4d55ff4b82d05559ed98916c0e1fd6d73b3a8 Mon Sep 17 00:00:00 2001 From: GRMrGecko Date: Mon, 19 Feb 2024 18:01:55 -0600 Subject: [PATCH] Fix comments --- mirror-file-generator.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mirror-file-generator.sh b/mirror-file-generator.sh index 9a12f2d..650f5ba 100644 --- a/mirror-file-generator.sh +++ b/mirror-file-generator.sh @@ -67,7 +67,8 @@ log() { echo "$(date --rfc-3339=seconds) $(hostname -s) ${PROGRAM}[$$]: $msg" } -# Escape characters that are not HTML safe to ensure +# Escape characters that are not HTML safe to ensure accidental +# code injection does not occur. html_encode() { local s s=${1//&/\&} @@ -95,7 +96,8 @@ image_copy() { if [[ -z $file ]]; then return fi - # Get the file name in which to save the file as. Would typically be logo or the directory name of the repo. + # Get the file name in which to save the file as. + # Would typically be logo or the directory name of the repo. local file_name=$2 if [[ -z $file_name ]]; then return