From 0118e623c97c9c61b34820a38feabeab34408e43 Mon Sep 17 00:00:00 2001 From: piaip Date: Wed, 12 Mar 2008 05:46:21 +0000 Subject: - change show_file parameter to assign striping options in a better way. - also prevents ESC* style escapes in user_play_query, for security reason. (Thanks to Kinra's report on PttSuggest) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3996 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/modes.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/modes.h') diff --git a/include/modes.h b/include/modes.h index 0c79bb3c..689a2853 100644 --- a/include/modes.h +++ b/include/modes.h @@ -207,4 +207,11 @@ enum _DBCS_STATUS { #define PAGER_MODES (5) +/* stuff.c: show_file */ +#define SHOWFILE_RAW (0x00) +#define SHOWFILE_ALLOW_COLOR (0x01) // ESC [ ... m +#define SHOWFILE_ALLOW_MOVE (0x02) // ESC [ ... H +#define SHOWFILE_ALLOW_STAR (0x04) // ESC * ... +#define SHOWFILE_ALLOW_ALL (SHOWFILE_ALLOW_COLOR | SHOWFILE_ALLOW_MOVE | SHOWFILE_ALLOW_STAR) + #endif -- cgit v1.2.3