瀏覽代碼

HUE-153. Problems with meta refresh handling

Marcus McLaughlin 15 年之前
父節點
當前提交
56a833d66c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {