summaryrefslogtreecommitdiff
path: root/inc/parser
Commit message (Collapse)AuthorAge
...
* Display media file size only if file exists (prevents PHP warning)Michael Hamann2013-02-17
|
* introduced http_status() for sending HTTP status code FS#1698Andreas Gohr2013-02-16
| | | | | | | It seems, some servers require a special Status: header for sending the HTTP status code from PHP (F)CGI to the server. This patch introduces a new function (adopted from CodeIgniter) for simplifying the status handling.
* show filesize of local file links in tooltipRobin Getz2013-01-09
|
* XHTML renderer: bind section id counter to the renderer instanceMichael Hamann2012-12-02
| | | | | | | This changes the previously static lastsecid into an instance variable, this leads to consistent section edit ids when the xhtml renderer is used more than once in a request. This makes it possible for test cases to know the exact section edit id for an instruction array.
* Combine subsequent calls to strtr into a single transformationTom N Harris2012-11-18
|
* Merge pull request #121 from splitbrain/strictAndreas Gohr2012-11-04
|\ | | | | fix E_STRICT errors FS#2427
| * fix E_STRICT errors FS#2427Andreas Gohr2012-07-28
| | | | | | | | | | | | | | | | This commit fixes all E_STRICT messages shown when running the test suite. There might be more problems not covered by tests, yet. For compatibility reasons with plugins, E_STRICT errors are still supressed.
* | Document $text parameters of html and php in the xhtml parserMichael Hamann2012-08-24
|/
* Add the $doc variable to all renderersMichael Hamann2012-07-28
| | | | In p_render() it is assumed that all renderers have a $doc variable
* Replace = & by =& as the former isn't understood by IntelliJ IDEAMichael Hamann2012-07-28
|
* Fixed and extended PHPDoc comments and added additional @var commentsMichael Hamann2012-07-28
|
* another call_user_func warning fixAndreas Gohr2012-07-28
|
* replaced use of basename() with utf8_basename() FS#2015Andreas Gohr2012-07-28
|
* Merge branch 'input-validation' of git://github.com/whoopdedo/dokuwiki into ↵Andreas Gohr2012-07-06
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pull-request-110 * 'input-validation' of git://github.com/whoopdedo/dokuwiki: fix incorrect usage of tpl_getMediaFile fix necessary global declaration Input wrapper for html forms Input validation for media manager Input wrapper for exe scripts more INPUT wrapper uses: cache purge, sectok, getID Input wrapper for action.php Conflicts: lib/exe/css.php
| * Input wrapper for html formsTom N Harris2012-06-28
| |
* | xml compatibility fixes (mainly entities to unicode conversions)Anika Henke2012-07-05
| |
* | renamed smiley image class to 'icon' (FS#1970)Anika Henke2012-04-08
| |
* | removed align attribute from images and inserted them only in the feed (FS#1351)Anika Henke2012-04-08
| | | | | | | | can someone with better regex skills please revise this?
* | use abbr instead of deprecated acronymAnika Henke2012-04-08
| |
* | removed names from footnotes and removed anchors from headings altogetherAnika Henke2012-04-08
|/
* Merge pull request #86 from lupo49/masterAndreas Gohr2012-03-14
|\ | | | | Parser: Allow parser to fully recognize windows share links with a hyphen character in it
| * Parser: Allow parser to fully recognize windows share links with a hyphen ↵lupo492012-03-07
| | | | | | | | | | | | character in it (Currently, the clickable link stops before a hyphen character)
* | Merge pull request #71 from danny0838/masterAndreas Gohr2012-03-10
|\ \ | |/ |/| Rework for 2 missing commits
| * Fix a stupid typoDanny2012-03-01
| |
| * Slight fix to match current version.Danny2011-12-17
| |
| * Rework for missing commit 08162f005f3ced0555de590dc1a53155af99d998Danny2011-12-17
| |
| * Rewark for missing commit 9aa0e6c6087e616511fc95d1650ca9b608edece8Danny2011-12-17
| |
* | fixed .curid to always highlight the current ID of the main/viewed pageAnika Henke2012-01-31
| |
* | Revert 4a24b459, thus fixing FETCH_MEDIA_STATUS for missing files (FS#2405)Adrian Lang2011-12-20
|/
* replace unset with array_popAndreas Gohr2011-10-15
| | | | | unset does not reset the Array's internal pointer which messes up later calls. array_pop is still much faster than array_splice
* fix off-by-one errorAndreas Gohr2011-10-15
|
* added the missing bit to my last commitAndreas Gohr2011-10-15
|
* Fix performance issue in close_paragraphAndreas Gohr2011-10-15
| | | | Looks like a for loop is faster than array_splice
* cleanup of handler.phpAndreas Gohr2011-10-15
| | | | The file contained a few DOS lineendings and trailing spaces
* issue #46 Render links to missing media files as link to the media managerKate Arzamastseva2011-09-02
|
* 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.