Browse Source

fixed Using Certain Characters for the Organizr Title breaks Plex oAuth (#1824)

CauseFX 4 years ago
parent
commit
07b08e5b87
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/functions.js

+ 1 - 1
js/functions.js

@@ -9778,7 +9778,7 @@ function PopupCenter(url, title, w, h) {
     return newWindow;
 }
 function getPlexHeaders(){
-    let plexTitle = activeInfo.appearance.title == '' ? 'Organizr' : activeInfo.appearance.title;
+    let plexTitle = activeInfo.appearance.title == '' ? 'Organizr' : cleanClass(activeInfo.appearance.title);
     return {
         'Accept': 'application/json',
         'X-Plex-Product': plexTitle,