#define DBG1(X,Y,Za) ap_log_rerror(APLOG_MARK,APLOG_DEBUG,0,(X),(Y),(Za))
#define DBG2(X,Y,Za,Zb) ap_log_rerror(APLOG_MARK,APLOG_DEBUG,0,(X),(Y),(Za),(Zb))
#define DBG3(X,Y,Za,Zb,Zc) ap_log_rerror(APLOG_MARK,APLOG_DEBUG,0,(X),(Y),(Za),(Zb),(Zc))
+#define DBG4(X,Y,Za,Zb,Zc,Zd) ap_log_rerror(APLOG_MARK,APLOG_DEBUG,0,(X),(Y),(Za),(Zb),(Zc),(Zd))
+#define DBG5(X,Y,Za,Zb,Zc,Zd,Ze) ap_log_rerror(APLOG_MARK,APLOG_DEBUG,0,(X),(Y),(Za),(Zb),(Zc),(Zd),(Ze))
#define ERR(X,Y) ap_log_rerror(APLOG_MARK,APLOG_ERR,0,(X),(Y))
#define ERR1(X,Y,Za) ap_log_rerror(APLOG_MARK,APLOG_ERR,0,(X),(Y),(Za))
* limitations under the License.
*/
#include "mod_chxj.h"
+#include "chxj_encoding.h"
#include "chxj_xhtml_mobile_1_0.h"
#include "chxj_hdml.h"
#include "chxj_dump.h"
}
else
if ((*name == 'h' || *name == 'H') && strcasecmp(name, "href") == 0) {
+#if 0
+ apr_size_t ilen;
+ char* dbuf;
+ ap_unescape_url(value);
+ ilen = strlen(value);
+ dbuf = chxj_encoding(r, (const char*)value, (apr_size_t*)&ilen);
+ dbuf = ap_escape_uri(r->pool,dbuf);
+ xhtml->out = apr_pstrcat(r->pool,
+ xhtml->out,
+ " href=\"",
+ dbuf,
+ "\"",
+ NULL);
+#else
xhtml->out = apr_pstrcat(r->pool,
xhtml->out,
" href=\"",
value,
"\"",
NULL);
+#endif
}
else
if ((*name == 'a' || *name == 'A') && strcasecmp(name, "accesskey") == 0) {
#include "apr_pools.h"
#include "mod_chxj.h"
+#include "chxj_encoding.h"
#include "qs_ignore_sp.h"
#include "qs_log.h"
#include "qs_malloc.h"
for (;p;p = (Node*)qs_get_next_node(doc,p)) {
Attr* attr;
if ((char*)qs_get_node_value(doc,p) != NULL) {
- ap_log_rerror(APLOG_MARK, APLOG_DEBUG,0, doc->r,
- "%*.*sNode:[%s][%s]\n", indent,indent," ",
+ DBG5(doc->r,"%*.*sNode:[%s][%s]\n", indent,indent," ",
(char*)qs_get_node_name(doc,p),
(char*)qs_get_node_value(doc,p));
}
else {
- ap_log_rerror(APLOG_MARK, APLOG_DEBUG,0, doc->r,
- "%*.*sNode:[%s]\n", indent,indent," ", qs_get_node_name(doc,p));
+ DBG4(doc->r,"%*.*sNode:[%s]\n", indent,indent," ", qs_get_node_name(doc,p));
}
for (attr = (Attr*)qs_get_attr(doc,p); attr; attr = (Attr*)qs_get_next_attr(doc,attr)) {
ap_log_rerror(APLOG_MARK, APLOG_DEBUG,0, doc->r,