OSDN Git Service

* change writting.
authorkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Tue, 27 Jun 2006 18:49:29 +0000 (18:49 +0000)
committerkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Tue, 27 Jun 2006 18:49:29 +0000 (18:49 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/trunk@1237 1a406e8e-add9-4483-a2c8-d8cac5b7c224

configure
src/chxj_img_conv_format.c
src/mod_chxj.c
src/qs_parse_attr.c

index cb6823e..b91a295 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.59 for mod_chxj 0.7.0.
+# Generated by GNU Autoconf 2.59 for mod_chxj 0.8.0.
 #
 # Copyright (C) 2003 Free Software Foundation, Inc.
 # This configure script is free software; the Free Software Foundation
@@ -421,8 +421,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
 # Identity of this package.
 PACKAGE_NAME='mod_chxj'
 PACKAGE_TARNAME='mod_chxj'
-PACKAGE_VERSION='0.7.0'
-PACKAGE_STRING='mod_chxj 0.7.0'
+PACKAGE_VERSION='0.8.0'
+PACKAGE_STRING='mod_chxj 0.8.0'
 PACKAGE_BUGREPORT=''
 
 ac_unique_file="src/mod_chxj.c"
@@ -952,7 +952,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures mod_chxj 0.7.0 to adapt to many kinds of systems.
+\`configure' configures mod_chxj 0.8.0 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1019,7 +1019,7 @@ fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of mod_chxj 0.7.0:";;
+     short | recursive ) echo "Configuration of mod_chxj 0.8.0:";;
    esac
   cat <<\_ACEOF
 
@@ -1163,7 +1163,7 @@ fi
 test -n "$ac_init_help" && exit 0
 if $ac_init_version; then
   cat <<\_ACEOF
-mod_chxj configure 0.7.0
+mod_chxj configure 0.8.0
 generated by GNU Autoconf 2.59
 
 Copyright (C) 2003 Free Software Foundation, Inc.
@@ -1177,7 +1177,7 @@ cat >&5 <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by mod_chxj $as_me 0.7.0, which was
+It was created by mod_chxj $as_me 0.8.0, which was
 generated by GNU Autoconf 2.59.  Invocation command line was
 
   $ $0 $@
@@ -1792,7 +1792,7 @@ fi
 
 PACKAGE=mod_chxj
 
-VERSION=0.7.0
+VERSION=0.8.0
 
 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
@@ -20292,7 +20292,7 @@ _ASBOX
 } >&5
 cat >&5 <<_CSEOF
 
-This file was extended by mod_chxj $as_me 0.7.0, which was
+This file was extended by mod_chxj $as_me 0.8.0, which was
 generated by GNU Autoconf 2.59.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -20355,7 +20355,7 @@ _ACEOF
 
 cat >>$CONFIG_STATUS <<_ACEOF
 ac_cs_version="\\
-mod_chxj config.status 0.7.0
+mod_chxj config.status 0.8.0
 configured by $0, generated by GNU Autoconf 2.59,
   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
index b362128..546149b 100644 (file)
@@ -248,10 +248,10 @@ chxj_img_conv_format_handler(request_rec* r)
   else {
     entryp = chxj_apply_convrule(r, conf->convrules);
     if (entryp && entryp->user_agent) {
-      user_agent = (char*)apr_table_get(r->headers_in, "CHXJ_HTTP_USER_AGENT");
+      user_agent = (char*)apr_table_get(r->headers_in, CHXJ_HTTP_USER_AGENT);
     }
     else {
-      user_agent = (char*)apr_table_get(r->headers_in, "User-Agent");
+      user_agent = (char*)apr_table_get(r->headers_in, HTTP_USER_AGENT);
     }
   }
 
index 9d549c2..4712bc0 100644 (file)
@@ -117,6 +117,12 @@ converter_t convert_routine[] = {
   }
 };
 
+
+/**
+ * Only when User-Agent is specified, the User-Agent header is camouflaged. 
+ *
+ * @param r   [i]
+ */
 static apr_status_t 
 chxj_headers_fixup(request_rec *r)
 {
index 162e719..fc9086c 100644 (file)
 Attr*
 qs_parse_attr(Doc* doc, const char*s, int len, int *pos) 
 {
-  int ii;
-  int start_pos;
-  int size;
-  int novalue;
+  int   ii;
+  int   start_pos;
+  int   size;
+  int   novalue;
   char* name;
   char* value;
   Attr* attr;
-  int use_quote = 0;
+  int   use_quote = 0;
+  int   backslash = 0;
 
   QX_LOGGER_DEBUG("start qs_parse_attr()");