- added: setting to control Gitblit GO context path for proxy setups \r
**New:** *server.contextPath = /*\r
- added: *combined-md5* password storage option which stores the hash of username+password as the password\r
+- added: RSS feeds now include regex substitutions on commit messages for bug trackers, etc\r
- fixed: federation protocol timestamps. dates are now serialized to the [iso8601](http://en.wikipedia.org/wiki/ISO_8601) standard. \r
**This breaks 0.6.0 federation clients/servers.**\r
- fixed: collision on rename for repositories and users\r
- added: setting to control Gitblit GO context path for proxy setups \r
**New:** *server.contextPath = /*\r
- added: *combined-md5* password storage option which stores the hash of username+password as the password\r
+- added: RSS feeds now include regex substitutions on commit messages for bug trackers, etc\r
- fixed: federation protocol timestamps. dates are now serialized to the [iso8601](http://en.wikipedia.org/wiki/ISO_8601) standard. \r
**This breaks 0.6.0 federation clients/servers.**\r
- fixed: collision on rename for repositories and users\r
import org.slf4j.Logger;\r
import org.slf4j.LoggerFactory;\r
\r
+import com.gitblit.models.FeedEntryModel;\r
import com.gitblit.models.RefModel;\r
import com.gitblit.models.RepositoryModel;\r
-import com.gitblit.models.FeedEntryModel;\r
import com.gitblit.utils.HttpUtils;\r
import com.gitblit.utils.JGitUtils;\r
import com.gitblit.utils.StringUtils;\r
entry.link = MessageFormat.format(urlPattern, gitblitUrl,\r
StringUtils.encodeURL(model.name), commit.getName());\r
entry.published = commit.getCommitterIdent().getWhen();\r
- entry.contentType = "text/plain";\r
- entry.content = commit.getFullMessage();\r
+ entry.contentType = "text/html";\r
+ String message = GitBlit.self().processCommitMessage(model.name, commit.getFullMessage());\r
+ entry.content = message;\r
entry.repository = model.name;\r
entry.branch = objectId;\r
List<RefModel> refs = allRefs.get(commit.getId());\r
import javax.swing.event.ListSelectionListener;\r
import javax.swing.table.TableRowSorter;\r
\r
-import com.gitblit.models.FeedModel;\r
import com.gitblit.models.FeedEntryModel;\r
+import com.gitblit.models.FeedModel;\r
import com.gitblit.utils.StringUtils;\r
\r
/**\r
import com.gitblit.GitBlitException.UnknownRequestException;\r
import com.gitblit.Keys;\r
import com.gitblit.models.FederationModel;\r
+import com.gitblit.models.FeedEntryModel;\r
import com.gitblit.models.FeedModel;\r
import com.gitblit.models.RepositoryModel;\r
import com.gitblit.models.ServerSettings;\r
import com.gitblit.models.ServerStatus;\r
-import com.gitblit.models.FeedEntryModel;\r
import com.gitblit.models.UserModel;\r
import com.gitblit.utils.RpcUtils;\r
import com.gitblit.utils.StringUtils;\r
import javax.swing.event.ListSelectionListener;\r
\r
import com.gitblit.Constants;\r
-import com.gitblit.models.RepositoryModel;\r
import com.gitblit.models.FeedEntryModel;\r
+import com.gitblit.models.RepositoryModel;\r
import com.gitblit.utils.StringUtils;\r
\r
/**\r
}\r
\r
SyndContent content = new SyndContentImpl();\r
- content.setType(entryModel.contentType);\r
- content.setValue(entryModel.content);\r
+ if (StringUtils.isEmpty(entryModel.contentType)\r
+ || entryModel.contentType.equalsIgnoreCase("text/plain")) {\r
+ content.setType("text/html");\r
+ content.setValue(StringUtils.breakLinesForHtml(entryModel.content));\r
+ } else {\r
+ content.setType(entryModel.contentType);\r
+ content.setValue(entryModel.content);\r
+ }\r
entry.setDescription(content);\r
\r
entries.add(entry);\r
* @return a list of SyndicationModel entries\r
* @throws {@link IOException}\r
*/\r
- public static List<FeedEntryModel> readSearchFeed(String url, String repository,\r
- String branch, String fragment, Constants.SearchType searchType, int numberOfEntries,\r
- int page, String username, char[] password) throws IOException {\r
+ public static List<FeedEntryModel> readSearchFeed(String url, String repository, String branch,\r
+ String fragment, Constants.SearchType searchType, int numberOfEntries, int page,\r
+ String username, char[] password) throws IOException {\r
// determine parameters\r
List<String> parameters = new ArrayList<String>();\r
parameters.add("s=" + StringUtils.encodeURL(fragment));\r