diff options
author | Nicholas Vinson <nvinson234@gmail.com> | 2021-02-25 17:12:03 -0500 |
---|---|---|
committer | Rasmus Thomsen <oss@cogitri.dev> | 2021-02-26 01:07:08 +0100 |
commit | 40ae076290c0902777171db898ab471f06b082dc (patch) | |
tree | d27856f791d6ab2f17e09997cc747584a4ea92c3 | |
parent | f9b08c50009485817e8b44300f79a92e37fe9f22 (diff) | |
download | wgetpaste-40ae076290c0902777171db898ab471f06b082dc.tar.gz |
Add missing dpaste escape functions
escape_description_dpaste() and escape_input_dpaste() are missing which
causes the default escape function to be used. This results in mangled
pastes.
Fixes: #22
-rwxr-xr-x | wgetpaste | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -110,6 +110,8 @@ Python Python%Interactive/Traceback Ruby Ruby%HTML%(ERB) SQL XML" LANGUAGE_VALUES_dpaste="% Apache Bash Css Diff DjangoTemplate Haskell JScript Python PythonConsole \ Ruby Rhtml Sql Xml" EXPIRATIONS_dpaste=$(printf "%s " {1..365}) +escape_description_dpaste() { echo "$*"; } +escape_input_dpaste() { echo "$*"; } POST_dpaste() { local title="${2}" local syntax="${3}" |