]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/core-utils.ts
Fix resolution for portrait videos
[github/Chocobozzz/PeerTube.git] / server / helpers / core-utils.ts
index 77547c528d7a600cea1df0045878603a178d93ad..65f18d6442ac34da6d8719e15a15cc18dfc838cb 100644 (file)
@@ -50,6 +50,8 @@ function root () {
 
 // Thanks: https://stackoverflow.com/a/12034334
 function escapeHTML (stringParam) {
+  if (!stringParam) return ''
+
   const entityMap = {
     '&': '&',
     '<': '&lt;',