summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Vinson <nvinson234@gmail.com>2021-02-25 17:12:03 -0500
committerRasmus Thomsen <oss@cogitri.dev>2021-02-26 01:07:08 +0100
commit40ae076290c0902777171db898ab471f06b082dc (patch)
treed27856f791d6ab2f17e09997cc747584a4ea92c3
parentf9b08c50009485817e8b44300f79a92e37fe9f22 (diff)
downloadwgetpaste-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-xwgetpaste2
1 files changed, 2 insertions, 0 deletions
diff --git a/wgetpaste b/wgetpaste
index 0f8219b..ed0bdac 100755
--- a/wgetpaste
+++ b/wgetpaste
@@ -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}"