diff --git a/include/plugin.php b/include/plugin.php index df33fd3f2..e37ae8435 100755 --- a/include/plugin.php +++ b/include/plugin.php @@ -249,6 +249,7 @@ function get_theme_info($theme){ list($k,$v) = array_map("trim", explode(":",$l,2)); $k= strtolower($k); if ($k=="author"){ + $r=preg_match("|([^<]+)<([^>]+)>|", $v, $m); if ($r) { $info['author'][] = array('name'=>$m[1], 'link'=>$m[2]); diff --git a/js/main.js b/js/main.js index 0b5fb5cdc..defd1f951 100755 --- a/js/main.js +++ b/js/main.js @@ -591,7 +591,7 @@ Array.prototype.remove = function(item) { function previewTheme(elm) { theme = $(elm).val(); $.getJSON('pretheme?f=&theme=' + theme,function(data) { - $('#theme-preview').html(''); + $('#theme-preview').html('