Merge pull request #238 from fbmnds/main

Update clog-connection.lisp
This commit is contained in:
David Botton 2022-10-01 21:40:09 -04:00 committed by GitHub
commit cafe9ba527
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -610,8 +610,8 @@ the contents sent to the brower."
(defun escape-string (str)
"Escape STR for sending to browser script."
(let ((res))
(setf res (ppcre:regex-replace-all "\\x5C" res "\\x5C")) ; \
(setf res (ppcre:regex-replace-all "\\x22" str "\\x22")) ; "
(setf res (ppcre:regex-replace-all "\\x5C" str "\\x5C")) ; \
(setf res (ppcre:regex-replace-all "\\x22" res "\\x22")) ; "
(setf res (ppcre:regex-replace-all "\\x27" res "\\x27")) ; '
(setf res (ppcre:regex-replace-all "\\x0A" res "\\x0A")) ; \n
(setf res (ppcre:regex-replace-all "\\x0D" res "\\x0D")) ; \r