Commit Graph

18 Commits

Author SHA1 Message Date
David Mudrák 59641dd5a6 MDL-68738 wiki: Prevent URLs inside links from turning into another link
There was a problem with wiki pages in the HTML markup syntax. If they
contain a link and the link text has a URL in it, that URL was converted
into another link. But it was not correctly nested and it caused
additional troubles with filters (particularly the multimedia filter if
the URL was a video such as on youtube).

The solution here is similar to what we do in filters. We protect the
whole explicit link so that its content is not further parsed. That
prevents the inner URL to be converted into another link and the
explicit link has the full control.
2020-05-21 21:12:02 +02:00
Eloy Lafuente (stronk7) 8eb8e5df83 Merge branch 'MDL-48307-master' of git://github.com/marinaglancy/moodle 2016-03-22 00:28:02 +01:00
Marina Glancy 7c5c80350c MDL-49807 mod_wiki: section detection regexp fix 2016-02-17 13:11:10 +08:00
Marina Glancy aaa6bcb61a MDL-48307 mod_wiki: protect [edit] section link from nwiki parser 2016-02-10 14:23:57 +08:00
Marina Glancy 3d89ccb374 MDL-49807 mod_wiki: minimum heading level should always be <h3> 2016-02-09 17:48:39 +08:00
Luca Bösch 2c13bbba2b MDL-37739 mod_wiki: Wiki ToC header href remove square double brackets.
When H1, H2 and H3 links in wiki act themselves as hyperlinks, they
were displayed in double brackets. This patch removes [[ and ]] out of
the table of content displayed header hyperlinks.
2016-01-19 09:00:56 +01:00
Frederic Massart 414f7ef8ff MDL-29585 mod_wiki: Prevent broken links in editable sections
When a section name ended with a URL, the '<a' part of [edit] link
that is appended to the section was considered as part of the URL
in the section, thus causing the [edit] link to be broken.
2014-11-19 17:28:36 +08:00
Frederic Massart c159e2aa0a MDL-29585 mod_wiki: Handle special characters in headings/sections 2014-11-17 10:38:36 +08:00
Sam Hemelryk 593b838546 MDL-44159 mod_wiki: unify @package use 2014-02-21 08:32:58 +13:00
Charles Fulton b4de35e632 MDL-28616 wiki: use class variable for toc header depth 2012-09-14 05:49:14 -07:00
Charles Fulton 2264828fd0 MDL-28616 wiki: html format toc rendering should match nwiki and creole 2012-09-14 05:49:14 -07:00
Charles Fulton 789379ec58 MDL-32023 wiki: remove hard-coded edit string 2012-08-02 06:08:49 -07:00
Sun Zhigang a572f17d41 MDL-31201 wiki: fix a hardcoded string 2012-06-27 13:34:50 +08:00
Aparup Banerjee 2b9ce62e23 performance MDL-25637 converted tabs to spaces 2011-01-24 15:49:18 +08:00
Aparup Banerjee f179cdb73e performance MDL-25637 some of more similar performance tweaks to come 2011-01-24 14:51:21 +08:00
David Mudrak 84a8bedd6a MDL-24777 function replace_smilies() is not called from any other core code 2010-10-23 18:41:47 +00:00
Jonathan Harker 349565d0c1 mod/wiki: MDL-20876 fix deprecated split() calls. 2010-07-20 01:43:11 +00:00
Dongsheng Cai 00710f4cc1 MDL-22112, push wiki 2.0 into head 2010-05-02 11:28:11 +00:00