Skip to content

Commit

Permalink
Fixes #1355
Browse files Browse the repository at this point in the history
thanks @dragondz
  • Loading branch information
bloatware committed Oct 22, 2018
1 parent 38bfb82 commit d93372a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion textpattern/publish/taghandlers.php
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ function category_list($atts, $thing = null)
'parent' => '',
'section' => '',
'children' => 1,
'sort' => '',
'sort' => 'name ASC',
'this_section' => 0,
'type' => 'article',
'wraptag' => '',
Expand Down
7 changes: 6 additions & 1 deletion textpattern/textpattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -1959,7 +1959,12 @@ jQuery.fn.txpUploadPreview = function(template) {
}
}

preview = textpattern.mustache(template, $.extend(this, {hash: hash, preview: preview, status: status, title: this.name.replace(/\.[^\.]*$/, '')}))
preview = textpattern.mustache(template, $.extend(this, {
hash: hash,
preview: preview,
status: status,
title: textpattern.encodeHTML(this.name.replace(/\.[^\.]*$/, ''))
}))
form.append(preview)
});
}).change()
Expand Down

0 comments on commit d93372a

Please sign in to comment.