summaryrefslogtreecommitdiffstats
path: root/mbbsd/edit.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-07-03 20:32:20 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-07-03 20:32:20 +0800
commit43d7446bb8b43450cbfcee6adce187c0d6b284c3 (patch)
tree7ff7ab94e4f1f0941ce47688dda34075fb672aab /mbbsd/edit.c
parent728bd7471eb48701106ef65af331a0173a5d3903 (diff)
downloadpttbbs-43d7446bb8b43450cbfcee6adce187c0d6b284c3.tar
pttbbs-43d7446bb8b43450cbfcee6adce187c0d6b284c3.tar.gz
pttbbs-43d7446bb8b43450cbfcee6adce187c0d6b284c3.tar.bz2
pttbbs-43d7446bb8b43450cbfcee6adce187c0d6b284c3.tar.lz
pttbbs-43d7446bb8b43450cbfcee6adce187c0d6b284c3.tar.xz
pttbbs-43d7446bb8b43450cbfcee6adce187c0d6b284c3.tar.zst
pttbbs-43d7446bb8b43450cbfcee6adce187c0d6b284c3.zip
make low security an option to be toggled
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2882 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/edit.c')
-rw-r--r--mbbsd/edit.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c
index bcc8e28e..54c515b4 100644
--- a/mbbsd/edit.c
+++ b/mbbsd/edit.c
@@ -1269,14 +1269,22 @@ do_quote(void)
while (fgets(buf, 256, inf)) {
insert_char(':');
insert_char(' ');
+#ifdef LOW_SECURITY
+ insert_string(Ptt_prints(buf, STRIP_ALL));
+#else
quote_strip_ansi_inline(buf);
insert_string(buf);
+#endif
}
else if (op == 'r')
while (fgets(buf, 256, inf)) {
/* repost, keep anything */
+#ifdef LOW_SECURITY
+ insert_string(Ptt_prints(buf, NO_RELOAD));
+#else
// quote_strip_ansi_inline(buf);
insert_string(buf);
+#endif
}
else {
if (curredit & EDIT_LIST) /* ¥h±¼ mail list ¤§ header */
@@ -1287,8 +1295,12 @@ do_quote(void)
if (!garbage_line(buf)) {
insert_char(':');
insert_char(' ');
+#ifdef LOW_SECURITY
+ insert_string(Ptt_prints(buf, STRIP_ALL));
+#else
quote_strip_ansi_inline(buf);
insert_string(buf);
+#endif
}
}
}