فهرست منبع

Decode from UTF-8 to allow unicode characters in the connection name

samhed 11 سال پیش
والد
کامیت
6227a91c01
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      include/rfb.js

+ 1 - 1
include/rfb.js

@@ -923,7 +923,7 @@ init_msg = function() {
 
         /* Connection name/title */
         name_length   = ws.rQshift32();
-        fb_name = ws.rQshiftStr(name_length);
+        fb_name = decodeURIComponent(escape(ws.rQshiftStr(name_length)));
         conf.onDesktopName(that, fb_name);
         
         if (conf.true_color && fb_name === "Intel(r) AMT KVM")