Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: f2963851944811dd1795fa1831a1ba49873e78a3
https://github.com/openSUSE/open-build-service/commit/f2963851944811dd1795fa...
Author: Lukas Krause
Date: 2020-10-09 (Fri, 09 Oct 2020)
Changed paths:
M src/api/lib/obsapi/markdown_renderer.rb
M src/api/spec/helpers/webui/markdown_helper_spec.rb
Log Message:
-----------
Prevent exception on empty URL in markdown text
An empty URL part in markdown text leads to an exception
in the mardown renderer. When a comment
includes such an empty URL string, it ends up with a
code 500. This happens when people post code examples
which contain the same syntax as a markdown link.
Instead of throwing an exception, we can just render
the original content incase of an empty URL part.
Kudos to @eduardoj
Fixes #10259
Commit: f6e6433a8c34b6ff35e701b6d3a55d2fb87380f5
https://github.com/openSUSE/open-build-service/commit/f6e6433a8c34b6ff35e701...
Author: Lukas Krause
Date: 2020-10-09 (Fri, 09 Oct 2020)
Changed paths:
M src/api/lib/obsapi/markdown_renderer.rb
M src/api/spec/helpers/webui/markdown_helper_spec.rb
Log Message:
-----------
Merge pull request #10270 from krauselukas/fix/markdown_comments
Prevent exception on empty URL in markdown text
Compare: https://github.com/openSUSE/open-build-service/compare/f15e5bbbc9e3...f6e643...