■掲示板に戻る■
全部
1-
101-
201-
301-
401-
501-
601-
701-
801-
901-
1001-
最新50
レス数が1000を超えています。残念ながら全部は表示しません。
Apache関連 Part3
261 :
名無しさん@Vim%Chalice
:02/08/21 08:04
>>260
2.0だけど、modules/generators/mod_autoindex.cにこんなパッチあてて、
IndexOptionsに+NoEscapeHTMLしてる。
--- mod_autoindex.c.orig2002-06-01 05:50:14.000000000 +0900
+++ mod_autoindex.c2002-08-21 07:58:49.000000000 +0900
@@ -110,6 +110,8 @@
#define FANCY_INDEXING 0x2000
#define TABLE_INDEXING 0x4000
#define IGNORE_CLIENT 0x8000
+#define NOESCAPEHTML 0x10000
+#define NOESCAPEOS 0x20000
#define K_NOADJUST 0
#define K_ADJUST 1
@@ -407,6 +409,12 @@
else if (!strcasecmp(w, "VersionSort")) {
option = VERSION_SORT;
}
+ else if (!strcasecmp(w, "NoEscapeOS")) {
+ option = NOESCAPEOS;
+ }
+ else if (!strcasecmp(w, "NoEscapeHTML")) {
+ option = NOESCAPEHTML;
+ }
else if (!strcasecmp(w, "None")) {
if (action != '\0') {
return "Cannot combine '+' or '-' with 'None' keyword";
@@ -1626,7 +1634,12 @@
apr_pool_clear(scratch);
t = ar[x]->name;
- anchor = ap_escape_html(scratch, ap_os_escape_path(scratch, t, 0));
+{
+ char* p = autoindex_opts & NOESCAPEOS ?
+t : ap_os_escape_path(scratch, t, 0);
+ anchor = autoindex_opts & NOESCAPEHTML ?
+p : ap_escape_html(scratch, p);
+}
if (!x && t[0] == '/') {
t2 = "Parent Directory";
掲示板に戻る
全部
前100
次100
最新50
read.cgi ver5.26+ (01/10/21-)