Skip to content
Snippets Groups Projects
  1. Mar 24, 2010
    • YoBoY's avatar
      Limiting use of readdir in the idx_indexLengths function (v2). · 22952965
      YoBoY authored
      Each searches on the wiki use this function. Scanning the index directory eachtime is time consuming with a constant series of disk access.
      Switching a normal search to use file_exists 1 or more times, and not readdir all the directory.
      Switching a wildcard search to use a lengths.idx file containing all the word lengths used in the wiki, file generated if a new configuration parameter $conf[readdircache] is not 0 and fixed to a time in second. Creation of a new function idx_listIndexLengths to do this part.
      22952965
  2. Feb 08, 2010
  3. Jan 20, 2010
  4. Nov 24, 2009
  5. Oct 16, 2009
    • furun's avatar
      Whitespace cleanup FS#1709 · 47583ff0
      furun authored
      Ignore-this: 27ea52110bce929b2c61ed8faba67cfc
      
      darcs-hash:20091016205526-c0bf4-35eba4e65d37980a667ba982f7f1ea5b7b07f01c.gz
      47583ff0
  6. May 25, 2009
  7. May 16, 2009
    • Andreas Gohr's avatar
      restrict XMLRPC to configurable groups and users · 3ee5b583
      Andreas Gohr authored
      Ignore-this: 1370cee84d44bb35ae7c0c988ed8f1ff
      
      This patch adds a config option to define users or groups that may access
      the XMLRPC API. ACLs are still checked on top of this intial access control.
      
      darcs-hash:20090516114351-7ad00-155fb6c74c29f5f84e79544a534369eec0403ff0.gz
      3ee5b583
  8. May 04, 2009
  9. Jan 16, 2009
  10. Oct 12, 2008
  11. Oct 01, 2008
    • Andy Webber's avatar
      editor_info_patch · dc58b6f4
      Andy Webber authored
      At present, DW shows the username on the bottom left under "logged in as", and the login name for "last modified", "locked by" and under
      revisions/recent changes. In a corporate environment, particularly when integrated with a Single Sign-On system, the login name may be somewhat
      unfriendly. This patch makes the "logged in as" the same as the value used elsewhere and also allows an admin to decide whether it should be the
      login name, username or e-mail address that is displayed. The e-mail address may also, optionally, be a mailto: link. E-mail addresses are
      obfuscated according to the 'mailguard' setting. The default behaviour is to show the login name which is no change from previous behaviour for the
      "last modified"/"locked by"/revisions/"recent changes", but is a change for the "logged in as".
      
      darcs-hash:20081001152914-6ad63-9cd7174068ac55de381f1318a4401f8c51de5b0c.gz
      dc58b6f4
  12. Sep 12, 2008
    • Andreas Gohr's avatar
      more cookie security FS#1490 · f5c6743c
      Andreas Gohr authored
      This patch adds the httponly option to the PHP session cookies and DokuWiki's
      auth cookie when supported by the PHP version.
      
      It also adds a new config option 'securecookie' which is enabled by default.
      It makes sure the browser will not sent a cookie set via HTTPS over a
      non-secured connection. This option has to be disabled for wikis that only
      protect the login with SSL but not the whole wiki.
      
      darcs-hash:20080912224922-7ad00-d5275147ba9d17a9f6defa8a51ca720da74ba8a0.gz
      f5c6743c
  13. Aug 15, 2008
  14. Mar 11, 2008
    • Chris Smith's avatar
      Add support for plugin renderers to replace standard renderers · d968d3e5
      Chris Smith authored
      This patch is the fourth in a series aimed at making it easier for DW to allow
      plugins to modify the standard handling of line-breaks.
      
      It adds:
      - new config setting 'renderer_xhtml', default value 'xhtml'
      - new renderer method 'reset()' which is used by reusable renderers when used
        to render second and subsequent data. (*)
      
      An extra step has been added to the renderer selection process.
      - check $conf["renderer_$mode] for renderer name.  If it doesn't exist use $mode as
        the renderer name.
      
      (*) It maybe that the 'document_start()' method can be used for this.  However the
      current xhtml does not correctly reset itself for reuse.
      
      darcs-hash:20080312005647-f07c6-ff2cb960c05927f5c6f3e916a364fcad470c2ce3.gz
      d968d3e5
  15. Feb 27, 2008
  16. Feb 23, 2008
    • Andreas Gohr's avatar
      use strftime() instead of date() FS#1335 :!: · e656dcd4
      Andreas Gohr authored
      This patch replaces the use of the date() function with the strftime()
      function. The latter will respect a set locale and will use localized
      strings for things like month names.
      
      Because the format options for strftime differ from the ones used in date,
      DokuWiki will rest the value of $conf['dformat'] if it contains an old
      date format string (detected by missing % characters).
      
      Plugins or templates using the $conf['dformat'] need to be updated.
      
      darcs-hash:20080223124045-7ad00-6afb2b839afc58781463e25577e06adb675fff79.gz
      e656dcd4
  17. Nov 23, 2007
    • Andreas Gohr's avatar
      Spellchecker removed · ae112d8c
      Andreas Gohr authored
      With spell checkers available in all modern browsers, having a spell checker in
      DokuWiki's core code is no longer necessary. This patch removes the spell
      checking feature. It will be made available as optional plugin.
      
      darcs-hash:20071123125840-7ad00-faf7aa4673421dbb3fad904ba5b46b4927a5176d.gz
      ae112d8c
  18. Oct 08, 2007
    • Andreas Gohr's avatar
      X-Sendfile support for fetch.php · 9a87c72a
      Andreas Gohr authored
      This patch enables the use of the X-Sendfile extension offered by certain
      webservers to deliver static files after running a dynamic script. This
      combines the flexibility of a PHP file to check for authorization, caching
      and resizing with the low memory footprint and high performance of static
      file delivery of the webserver.
      
      See http://blog.lighttpd.net/articles/2006/07/02/x-sendfile for details
      
      darcs-hash:20071008185019-7ad00-1e6d4768fb60d58955e4253c7786eaf8cf13d0bb.gz
      9a87c72a
  19. Jul 11, 2007
    • Andreas Gohr's avatar
      improved feed creation · 4ab889ea
      Andreas Gohr authored
      The feed now can export diff views (unified and HTML) as well as full HTML
      page content.
      
      Some things might be broken. Everybody please test it!
      
      darcs-hash:20070711213624-7ad00-49359417127fdbd6e31374738509110271b6b351.gz
      4ab889ea
  20. Jun 13, 2007
    • Andreas Gohr's avatar
      make typography option three staged FS#1142 · 9426a41a
      Andreas Gohr authored
      Because correct smart quote parsing with regular expressions is nearly
      impossible, especially when dealing with quote usage in languages different
      from english, the typography configuration option was changed.
      
      0 means to completely disable any typography replacements
      1 will only handle the multiply entitity and double quotes, this should
        nearly always work without problems and is the new default
      2 will add singlequote parsing. This might break because single quotes and
        apostrophes are not always easily distinguishable. Especially in languages
        where single quote openings and apostrophes are different characters you
        might experience problems. For english it should nearly always work.
      
      darcs-hash:20070613184015-7ad00-0cebc3f807f54467d54458075c5c9f651355c5ba.gz
      9426a41a
  21. May 28, 2007
    • Chris Smith's avatar
      Partial Fix FS#1085 · 4c989037
      Chris Smith authored
      This fix adds a new configuration setting, 'auth_security_timeout', which controls the duration (seconds) before authentication
      information is rechecked.  The default value is set to 900 seconds (15 minutes). Wiki installations particularly concerned
      about security should set this value to 0.
      
      DokuWiki maintains a copy of the most recent authentication details in both a browser cookie and server session.  Normally these
      values are compared on each page visit.  If the comparison passes the user is accepted. The same data will be used over and
      over until either the cookie or the session expires.  FS#1085 is concerned with updates to the original authentication data not
      being able to affect this comparison.  The new 'auth_security_timeout' setting will force expiration of the saved data after the
      specified period has elapsed.
      
      Re-authentication may affect page response, especially on systems which use remote authentication systems.
      
      This fix is considered partial and should be reviewed after the next release with a view to extending the authentication class
      to allow those mechanisms which are able to control when DW should revoke authentication.
      
      darcs-hash:20070528194747-d26fc-f471004da604eb66f7131c470e446b98c29d801b.gz
      4c989037
  22. May 11, 2007
    • Andreas Gohr's avatar
      add sneaky_index option · d1c7b6ec
      Andreas Gohr authored
      This disables the last patch and adds an option to enable it on demand.
      
      darcs-hash:20070511200235-7ad00-a3ea769bc4965710b7fd261d31e2c9f8a3d9d7f5.gz
      d1c7b6ec
  23. Feb 26, 2007
  24. Feb 24, 2007
  25. Feb 08, 2007
    • Andreas Gohr's avatar
      workaround config for FS#852 · cde6a01b
      Andreas Gohr authored
      On certain platforms the ignore_user_abort function does not work as expected, resulting
      in a non working indexer webbug. Users with such a broken system (IIS+PHP as CGI) can
      enable this option to work around the problem (resulting in longer load times for the
      webbug).
      
      darcs-hash:20070208195145-7ad00-8fc14f9da535a70fa837066773e15a3926b077c7.gz
      cde6a01b
  26. Dec 03, 2006
  27. Oct 31, 2006
    • Marc Mayfield's avatar
      rss_summary_config · a1716312
      Marc Mayfield authored
      Add a configuration option to control whether or not the edit/revision summary is
      displayed with the title of RSS feeds. The default is to show the summary, the same as
      DokuWiki did prior to this addition.
      
      darcs-hash:20061101023313-9039d-d067e9bcd7dc0c7cabd57674d1072c5b882ad4e7.gz
      a1716312
  28. Nov 17, 2006
    • Tom N Harris's avatar
      Indexer asian language fixes and speed-ups · d5b23302
      Tom N Harris authored
      Make Chinese and Japanese work better with the new indexer.
      Some missing punctuation added to utf8_stripspecials.
      Misc. other changes to make indexing faster. The indexes will expire on
      backend upgrades, so you don't have to delete *.indexed
      
      darcs-hash:20061117123032-6942e-774b38e08234928c49b37e40addba375acf67ac0.gz
      d5b23302
  29. Oct 17, 2006
    • Andreas Gohr's avatar
      restrict fetch.php's download abilities · 894a80cc
      Andreas Gohr authored
      This patch changes fetch.php ability to download external files. It now checks
      for the returned MIME type and will only download images. For all other
      MIME types a redirect is sent back to the browser. This reduces the risc of
      being misused as open proxy.
      
      Additionally the download facility is disabled completly by default by setting
      the fetchsize option to 0. Users who want the feature need to overwrite the option
      in their local.php.
      
      Background: The ability to download external files is needed to resize external
      images on the server side. When disabled, a redirect is sent to the browser which
      will download the fullsize image and rescale it on the client side which is more
      bandwidth and CPU intensive.
      
      darcs-hash:20061017175329-7ad00-cd1b1bfa043a04540c51ca8380d28deaa14147d1.gz
      894a80cc
  30. Sep 24, 2006
    • chris's avatar
      cache, metadata & purgefile updates · ce6b63d9
      chris authored
      Cache
      - add dependency for metadata renderer file
      - check metadata for end of page life, "date valid end".
      
      Metadata Renderer
      - RSS syntax mode now sets rendered page expiry, "date valid end"
        and includes the feed URL in "relation haspart".
      
      Purgefile
      For all wiki installations the purgefile records the earliest
      time before which no cache purge (based on data consistency)
      is required. Cache files older than this time MAY need to be
      purged.
      - remove purgeonadd configuration setting
      
      darcs-hash:20060924202157-9b6ab-4531e91411c41914eeab2b6a8160c3d46b001cee.gz
      ce6b63d9
  31. Sep 23, 2006
  32. Sep 22, 2006
    • Tom Hoover's avatar
      corrected typo · 039e19f5
      Tom Hoover authored
      darcs-hash:20060923034943-e5a2d-5888ec82ef23d82619522aaf33bee1c4bc1b1099.gz
      039e19f5
  33. Sep 17, 2006
  34. Sep 16, 2006
    • Andreas Gohr's avatar
      updatecheck feature · c29dc6e4
      Andreas Gohr authored
      This patch adds a feature to let DokuWiki automatically check if updates are
      available or any other important messages (like security warnings) and then
      display this info to the admin user.
      
      DokuWiki will contact the URL http://www.splitbrain.org/lib/exe/msg.php
      with a parameter telling it which messages it already know (read from
      conf/msg) - the server side script then will return all new messages.
      
      The messages will be displayed until DokuWiki was upgraded or conf/msg
      was updated manually. Messages are cached and only checked once a day.
      
      The messenger URL will probably change before the next release.
      
      darcs-hash:20060916210229-7ad00-7ac592650e171ae4144b0eb47a751a4ca480f031.gz
      c29dc6e4
  35. Aug 30, 2006
    • Ben Coburn's avatar
      scalable changelog redesign · 71726d78
      Ben Coburn authored
      This patch provides a rewritten changelog system that is designed to run
      efficiently on both small and large wikis. The patch includes a plugin to
      convert changelogs from the current format. The conversion is
      non-destructive and happens automatically. For more information on the new
      changelog format see "http://wiki.splitbrain.org/wiki:changelog".
      
      Structure
      In short the changelog is now stored in per-page changelog files, with a
      recent changes cache. The recent changes cache is kept in
      "/data/meta/_dokuwiki.changes" and trimmed daily. The per-page changelogs
      are kept in "/data/meta/<ns>/<page_id>.changes" files. To preserve
      revision information for revisions stored in the attic, the "*.changes"
      files are not removed when their page is deleted. This allows the full
      life-cycle of page creation, deletion, and reversion to be tracked.
      
      Format
      The changelog line format now uses a general "line type" field in place of
      the special "minor" change syntax. There is also an extra field that can
      be used to store arbitrary data associated with special line types. The
      reverted line type (R) is a good example. There the extra field holds the
      revision date used as the source for reverting the page. See the wiki for
      the complete syntax description.
      
      Code Notes
      The changelog functions have been rewritten to load the whole file only if
      it is small. For larger files, the function loads only the relevant
      chunk(s). Parsed changelog lines are cached in memory to speed future
      function calls.
      
      getRevisionInfo
      A binary search is used to locate the chunk expected to contain the
      requested revision. The whole chunk is parsed, and adjacent lines are
      optimistically cached to speed consecutive calls.
      
      getRevisions
      Reads the changelog file backwards (newest first) in chunks until the
      requested number of lines have been read. Parsed changelog lines are
      cached for subsequent calls to getRevisionInfo. Because revisions are read
      from the changelog they are no longer guaranteed to exist in the attic.
      
      (Note: Even with lines of arbitrary length getRevisionInfo and
      getRevisions never split changelog lines while reading. This is done by
      sliding the "file pointer" forward to the end of a line after each blind
      seek.)
      
      isMinor
      Removed. To detect a minor edit check the type as follows:
      $parsed_logline['type']
      
      darcs-hash:20060830182753-05dcb-1c5ea17f581197a33732a8d11da223d809c03506.gz
      71726d78
  36. Aug 25, 2006
    • chris's avatar
      update config plugin · fd49f8df
      chris authored
      - add $conf['compression'] meta data and en lang strings
      - remove $conf['usegzip'] meta data and en lang strings
      
      Other language strings will need to be updated.
      
      darcs-hash:20060825223047-9b6ab-b0c8c6af57847690a6d398d0bd98af9a51911c21.gz
      fd49f8df
Loading