Explorar o código

HUE-153. Problems with meta refresh handling

Marcus McLaughlin %!s(int64=15) %!d(string=hai) anos
pai
achega
56a833d66c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/core/static/js/Source/CCS/CCS.JFrame.js

+ 1 - 1
desktop/core/static/js/Source/CCS/CCS.JFrame.js

@@ -639,7 +639,7 @@ CCS.JFrame = new Class({
 		},
 		meta: function(data) {
 			//grab any meta tags and remove them from the html
-			data.meta = Elements.from(data.html.getTags('meta').join(' ').replace('meta', 'span'));
+			data.meta = Elements.from(data.html.getTags('meta').join(' ').replace(/(<|<\/)meta/g, '$1span'));
 			data.html = data.html.stripTags('meta');
 		},
 		elements: function(data) {