summaryrefslogtreecommitdiff
path: root/inc/parser
Commit message (Collapse)AuthorAge
* Revert "Only allow known protocols in RSS links"Andreas Gohr2011-06-14
| | | | | This reverts commit 1ca2719c7488662ebd7964c0d026e0890f923ee9 as it is now superseeded by a6b82e436e3d68a42a6556165d6aaf9249db44cd
* only allow configured URL schemes in external linksAndreas Gohr2011-06-14
| | | | | | | | | | | This fixes a problem where JavaScript could be introduced through specially crafted RSS feeds on a lower level than the commit from yesterday (1ca2719c7488662ebd7964c0d026e0890f923ee9) This also fixes a problem where JavaScript links could be introduced by specifying it as an RSS URL: the resulting error message displays a link to the broken feed URL. This patch makes sure there's no working link for unknown protocols.
* Only allow known protocols in RSS linksAndreas Gohr2011-06-13
| | | | | This fixes a security vulnerability where an attacker could introduce JavaScript links into wiki pages by including a prepared RSS feed.
* Change when metadata is rendered - only when really neededMichael Hamann2011-05-08
| | | | | | | | | | | | | | | | | | | | | | This changes the cache logic for metadata. It introduces a new mode that tries to avoid rendering the page again for simple requests but still updates the metadata when the page has been changed (but not when the cache timeout has been reached or purge is used). It simply compares the time of the last rendering with the last modified time of the page. The old boolean $render parameter has been changed into an int with three possible values. Compatibility for the old parameter is provided using a check with is_numeric using the following mapping: - false is still don't render (0 is the new value for that) - true is using that new render logic which means that many plugins will still work unchanged even if they request a lot of data using $render=true (1 is the new value for that providing full compatibility in the case 1 has been used instead of true) The default value for p_get_first_heading is now that new simple cache logic, the default value for getting metadata is the cache logic which should be used with care but is the only way to request (rendered) metadata that can change because of plugin installations or upgrades.
* Support the empty link [[]]Adrian Lang2011-04-14
|
* Check if link exists and set right captionIzidor Matušov2011-04-08
|
* Make the regex for internal links more restrictiveMichael Hamann2011-02-09
| | | | | This fixes a PCRE backtrack error that occurred on large pages like :users on dokuwiki.org.
* Merge branch 'danny'Andreas Gohr2011-02-06
|\
| * Merge remote branch 'danny0838/rewrite_block' into dannyAndreas Gohr2011-02-06
| |\
| | * Major rework of rewrite block in handler.php. (FS#2145)Danny Lin2011-01-26
| | | | | | | | | | | | | | | | | | -Simplify the algorithm. May improve performance. -Treat footnote as pure block and section as pure stack. -Remove post-p-open and pre-p-close linefeeds. Affects the effect of xbr plugin.
| | * First attempt to improve rewrite blocks; also eliminates post-paragraph ↵Danny Lin2011-01-26
| | | | | | | | | | | | starting single linebreaks.
| * | Merge remote branch 'danny0838/master' into dannyAndreas Gohr2011-02-06
| |\|
| | * Fixes an issue of metadata missing on links with empty altname. FS#2144Danny Lin2011-01-26
| | |
| | * Like others, there's no need to define $sectionedits as private, and it ↵Danny Lin2011-01-26
| | | | | | | | | | | | | | | | | | prevents plugins that ought to handle headers from working and require a lot of ugly workarounds (such as header2). If there's a concern, "protected" may be another choice.
* | | Revert "merged branch 'danny0838:rewrite_block' and resolved conflict"Andreas Gohr2011-02-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Anika's merge did not pul in the individual patches as one would expect. Then I messed up when trying to fix this by merging with danny's repo again but used the wrong branch. So we're still missing two patches. To have them apply cleanly I have to revert Anika's merge here. Another merge for the missing two patches will follow. This reverts commit b17e20ac9cca30b612968d02f06fa9c5df5c01f0.
* | | merged branch 'danny0838:rewrite_block' and resolved conflictAnika Henke2011-02-06
|/ /
* | FS#2154 unset call writers in finalise() to prevent circular referencesChristopher Smith2011-02-06
| | | | | | | | and help PHP garbage collection for PHP < 5.3
* | make IPv6 links in link syntax FS#2137Andreas Gohr2011-02-06
| |
* | URLs may contain brackets [] FS#2137Andreas Gohr2011-02-06
|/
* removed obsolete references to 'JSnocheck' classAnika Henke2011-01-03
|
* skip empty image title from abstractAndreas Gohr2010-12-22
|
* store the creator's login name in metadata FS#1397Andreas Gohr2010-12-22
|
* Make baseonly work in allowedModesAndreas Gohr2010-12-07
| | | | | | | | | | | | | | | | This makes it possible to have modes that do accept headers (baseonly) in the parser. Related test cases are still running through but I'm not 100% sure I did not break something here. So it should be tested a bit more. This patch will allow plugins to wrap multiple sections, however it also makes it possible to easily break XHTML validity, because headers also open and close sections, so plugin authors need to be aware! In case you wonder: this patch is not about allowing formatting inside headers.
* Remove enc=utf-8 in VIM modeline as it is not allowed in VIM 7.3Michael Hamann2010-11-29
| | | | | | As of VIM 7.3 it is no longer possible to specify the encoding in the modeline. This gives an error message whenever such a file is opened, thus this commit removes the enc setting from the modeline.
* Merge remote branch 'tstaerk/master'Andreas Gohr2010-10-17
|\
| * explaining what Doku_Parser_Mode_formatting does: it sets markupThorsten Staerk2010-10-17
| |
| * give a description for a functionThorsten Staerk2010-10-16
| |
* | Improve compatibility of table instructions handlingAdrian Lang2010-10-12
|/
* FS#1995, add a little defense to avoid warnings caused by bad wikiChristopher Smith2010-10-03
| | | | syntax
* No need for a self include ;)Christopher Smith2010-10-03
|
* more relaxed recognition of windows share links FS#1991Andreas Gohr2010-10-02
|
* #1797 fix ptype stack to properly close and reopen <p> elementsChristopher Smith2010-09-18
|
* Try to fix broken tablesAdrian Lang2010-08-13
|
* clean up table parser handlerAdrian Lang2010-08-13
|
* Fix table edit marker class element in XHTMLAdrian Lang2010-07-01
|
* Fix ns: and ns:start handlingAdrian Lang2010-07-01
|
* Merge branch 'master' of git@github.com:splitbrain/dokuwikiChristopher Smith2010-06-27
|\
| * added div around tables to make scrolling too wide ones in restrictive ↵Anika Henke2010-06-27
| | | | | | | | designs possible (FS#1980)
* | FS#1949Christopher Smith2010-06-27
|/
* FS#1915: strip one leading and one trailing newline from code content if ↵Gina Haeussge2010-06-26
| | | | available
* Do not parse URL params in internal links, just pass them throughAdrian Lang2010-06-23
|
* Make normal wikilinks work againAdrian Lang2010-06-17
|
* Allow URL params in internal links (FS#1967)Adrian Lang2010-06-17
|
* Allow plugins to specify that they have to be instantiatedAdrian Lang2010-03-29
| | | | | | | | Plugins may return false in isSingleton to let plugin_load return a new instance every time it is called. Renderer plugins are not loaded with $new set to true, but instead specify themself that they are not singletons. This behaviour allows the odt renderer to keep working (see #1598).
* Better code syntax parsing, less E_NOTICEAdrian Lang2010-03-26
|
* Fix special link displaying in abstractAdrian Lang2010-03-16
|
* Really allow plugins to use section editingAdrian Lang2010-03-04
|
* Show last edit section button againAdrian Lang2010-03-01
|
* Use double quotes for XHTML attributesAdrian Lang2010-02-17
|
* Validate section edit dataAdrian Lang2010-02-15
|