case AF_INET6:
if(strncmp(w->client_ip, "::ffff:", 7) == 0) {
- strcpy(w->client_ip, &w->client_ip[7]);
+ memmove(w->client_ip, &w->client_ip[7], strlen(&w->client_ip[7]) + 1);
debug(D_WEB_CLIENT_ACCESS, "%llu: New IPv4 web client from %s port %s on socket %d.", w->id, w->client_ip, w->client_port, w->ifd);
}
else
int points = (points_str && *points_str )?atoi(points_str):1;
int precision = (precision_str && *precision_str)?atoi(precision_str):-1;
+ if(!multiply) multiply = 1;
+ if(!divide) divide = 1;
+
int refresh = 0;
if(refresh_str && *refresh_str) {
if(!strcmp(refresh_str, "auto")) {
// get the name of the data to show
char *tok = mystrsep(&url, "/");
+ if(!tok) tok = "";
// do we have such a data set?
- if(tok && *tok) {
+ if(*tok) {
debug(D_WEB_CLIENT, "%llu: Searching for RRD data with name '%s'.", w->id, tok);
st = rrdset_find_byname(tok);
if(!st) st = rrdset_find(tok);