View Issue Details

IDProjectCategoryView StatusLast Update
0022901mantisbthtmlpublic2021-03-08 10:42
Reporterscrsc Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Summary0022901: URL with brackets is not correctly "maked" (with Kibana)
Description

With g_html_make_links the http URLs are automatically replaced with <a href ...> and </a>

But for this (valid) URL the detection for URL end is not correct:
http://elk.canda.biz/app/kibana#/discover?_g=()&amp;_a=(columns:!(_source),index:'deve-*',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'*')),sort:!('@timestamp',desc))
(URL is generated by kibana Version: 5.1.1)

Should be complete href'ed but stops before "(columns".

Tagsupstream
Attached Files

Activities

scrsc

scrsc

2017-05-19 06:32

reporter   ~0056906

Ok. Just see with the Mantis 2.4.0 it is working...

scrsc

scrsc

2017-05-19 06:33

reporter   ~0056907

No CORRECTION.

With Mantis 2.4.0 the last two "))" are not considered to be in the URL.

scrsc

scrsc

2017-05-19 06:37

reporter   ~0056908

See picture what 2.4.0 shows and what our mantis version shows.

dregad

dregad

2017-05-20 08:49

developer   ~0056917

Last edited: 2017-05-20 09:09

The difference in behavior is due to our use of Markdown in the Core Formatting plugin. When Markdown is disabled, I see the same problem with URL highlighting in your first screenshot.

So there seems in fact to be 2 distinct issues:

  • native URL processing needs to be improved, (update the regex in string_insert_hrefs() function)
  • URL processing in ParseDown library

EDIT: Parsedown issue reported upstream https://github.com/erusev/parsedown/issues/505