소스 검색

Fix PHP syntax error in JavaScript regex

- Fixed JavaScript regex string escaping in PHP heredoc
- Changed single quotes to double quotes to prevent PHP parse error
- PHP syntax validation now passes
mgomon 11 달 전
부모
커밋
d9b4bd7d6c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      api/homepage/jellystat.php

+ 1 - 1
api/homepage/jellystat.php

@@ -362,7 +362,7 @@ trait JellyStatHomepageItem
             if (itemId && jellyStatUrl) {
                 // JellyStat uses /proxy/Items/Images/Primary endpoint
                 // Format: /proxy/Items/Images/Primary?id={itemId}&fillWidth=200&quality=90
-                var baseUrl = jellyStatUrl.replace(/\/+$/, ''); // Remove trailing slashes
+                var baseUrl = jellyStatUrl.replace(/\/+$/, ""); // Remove trailing slashes
                 
                 var apiUrl = baseUrl + "/proxy/Items/Images/Primary?id=" + itemId + "&fillWidth=200&quality=90";
                 console.log("Generated JellyStat proxy image URL:", apiUrl);