Subversion Repositories RepoView

Rev

Rev 70 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 70 Rev 75
Line 1... Line 1...
1
/* $Id: modern.c 70 2024-08-24 08:48:19Z nishi $ */
1
/* $Id: modern.c 75 2024-08-30 05:19:25Z nishi $ */
2
 
2
 
3
#include "rv_query.h"
3
#include "rv_query.h"
4
 
4
 
5
#include "rv_util.h"
5
#include "rv_util.h"
6
#include "rv_version.h"
6
#include "rv_version.h"
Line 81... Line 81...
81
	for(i = 0; input[i] != 0; i++) {
81
	for(i = 0; input[i] != 0; i++) {
82
		if(input[i] == '<') {
82
		if(input[i] == '<') {
83
			add_data(&r, "&lt;");
83
			add_data(&r, "&lt;");
84
		} else if(input[i] == '>') {
84
		} else if(input[i] == '>') {
85
			add_data(&r, "&gt;");
85
			add_data(&r, "&gt;");
-
 
86
		} else if(input[i] == '&') {
-
 
87
			add_data(&r, "&amp;");
86
		} else {
88
		} else {
87
			cbuf[0] = input[i];
89
			cbuf[0] = input[i];
88
			add_data(&r, cbuf);
90
			add_data(&r, cbuf);
89
		}
91
		}
90
	}
92
	}