| Anonymous | Login | Signup for a new account | 2013-05-22 04:27 EDT |
| Main | My View | View Issues | Change Log | Roadmap |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
| 0000170 | [Nagios Core] Web Interface | tweak | always | 2010-10-24 14:24 | 2013-03-23 12:39 | ||
| Reporter | dvoryanchikov | View Status | public | ||||
| Assigned To | ageric | ||||||
| Priority | normal | Resolution | fixed | ||||
| Status | resolved | Product Version | |||||
| Summary | 0000170: Object values in utf8 are displayed incorrectly in the web interface | ||||||
| Description |
I have some contact aliases, hostnames and service descriptions defined in utf8. Because of its names get encoded I can't see it or submit any commands with it. For example, I have host named "дверь" and in web interface it displays as "дверÑ" ("двеÑÑ" in page source). I've found solution at mailing lists and made a patch wich allows me to use utf8 values valuably. Best regards, Alexey Dvoryanchikov. |
||||||
| Additional Information |
--- cgi/cgiutils.c~ 2010-10-04 07:17:09.000000000 +0400 +++ cgi/cgiutils.c 2010-10-24 22:19:06.588886823 +0400 @@ -1392,6 +1392,12 @@ y++; } + /* high bit characters don't get encoded */ + else if((unsigned char)input[x]>=0x7f){ + str[y]=input[x]; + y++; + } + /* spaces are pluses */ else if((char)input[x]<=(char)' '){ str[y]='+'; @@ -1556,6 +1562,10 @@ else if(((char)input[x]==(char)' ') || ((char)input[x]==(char)'-') || ((char)input[x]==(char)'.') || ((char)input[x]==(char)'_') || ((char)input[x]==(char)':')) encoded_html_string[y++]=input[x]; + /* high bit characters don't get encoded */ + else if((unsigned char)input[x]>=0x7f) + encoded_html_string[y++]=input[x]; + /* for simplicity, all other chars represented by their numeric value */ else{ encoded_html_string[y]='\x0'; |
||||||
| Tags | No tags attached. | ||||||
| Nagios Version | 3.2.3 | ||||||
| OS | any | ||||||
| OS Version | any | ||||||
| Attached Files |
|
||||||
|
|
|||||||
| Mantis 1.1.7[^] Copyright © 2000 - 2008 Mantis Group |