Skip to content
Snippets Groups Projects
  1. 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
  2. Oct 13, 2006
  3. Oct 08, 2006
  4. Sep 28, 2006
  5. Sep 26, 2006
  6. 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
  7. Sep 23, 2006
  8. Sep 22, 2006
    • Tom Hoover's avatar
      corrected typo · 039e19f5
      Tom Hoover authored
      darcs-hash:20060923034943-e5a2d-5888ec82ef23d82619522aaf33bee1c4bc1b1099.gz
      039e19f5
  9. Sep 17, 2006
  10. 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
  11. 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
  12. 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
  13. Aug 23, 2006
  14. Jul 28, 2006
  15. Jul 14, 2006
    • Andreas Gohr's avatar
      two-stage password reset · 1d5856cf
      Andreas Gohr authored
      This patch changes the password reset function to a two-stage process.
      After requesting a new password a confirmation email is sent first, only
      if the link contained in this mail is used the password is changed for real.
      
      This makes sure malicious people can't reset passwords for other users.
      
      darcs-hash:20060714110548-7ad00-c1e23fd51cc2d2f16473914421ebe0f9c3b2ba8c.gz
      1d5856cf
  16. Jul 02, 2006
    • Andreas Gohr's avatar
      disableactions support · 409d7af7
      Andreas Gohr authored
      This patch adds a config option to disable certain internal action commands of
      DokuWiki's main dispatcher.
      
      The options resendpasswd and openregister were removed because they can now set
      through this new option.
      
      The config plugin needs to be adjusted.
      
      darcs-hash:20060702121622-7ad00-1e80e77bcfb0ae561fe7abd79cfbe1bb158be720.gz
      409d7af7
  17. Jun 15, 2006
    • Sebastian Harl's avatar
      register notify #826 · a06e4bdb
      Sebastian Harl authored
      A small patch for dokuwiki which enables dokuwiki to notify the
      administrator about new user registrations
      
      darcs-hash:20060615194419-022eb-51630aff3c6d93abc656742fc0bc723b93f97734.gz
      a06e4bdb
    • Andreas Gohr's avatar
      $conf['fetchsize'] added · 847b8298
      Andreas Gohr authored
      This patch adds an option to configure the maximum size for files the fetch.php
      will ever download. Setting this to 0 completely turns of the caching of external
      media files.
      
      Disadvantages of setting a low or zero fetchsize:
      
        * fetch.php needs to download images to be able to resize them. When the used
          fetchsize prevents the downloading the images can only be resized by the
          browser which means the browser will need to download the fullsized image first.
      
        * If the linked external media files vanishes it will no longer display in the
          wiki because it is not cached.
      
      Advantages of setting a low or zero fetchsize:
      
        * fetch.php may be used for a possible denial of service attack by requesting
          many big external files.
      
        * The created cache files may take a lot of space on the server
      
      I recommend to leave the setting at 2MB for internal and private wikis and lower
      the setting to about 200 to 500 Kb for bigger public Wikis.
      
      Note: the caching of files uploaded through the media manager is not affected by
      this setting.
      
      darcs-hash:20060615184847-7ad00-04fc39928f7d72e56f5c5e271013ef265436e6c9.gz
      847b8298
  18. May 25, 2006
  19. May 23, 2006
  20. May 19, 2006
    • Andreas Gohr's avatar
      new mediamanager · 3df72098
      Andreas Gohr authored
      This patch adds a completely rewritten media popup. The following noteworthy
      changes were made:
      
      - media manager uses a collapsible namespace tree
      - media manager uses AJAX if available
      - media manager popup can be kept open when selecting a media file
      - only one template is used for the media manager :!: Template
      - Editable image metadata is configured in conf/mediameta.php now
      - The JS cookie mechanism was enhanced to store key/value pairs
      - Language strings can be exported to JS in js.php
      
      darcs-hash:20060519165023-7ad00-4932b4553fc919aa4a8b8187958b823acf4f8cee.gz
      3df72098
  21. May 16, 2006
    • Ben Coburn's avatar
      gzip content-encoding option · 524be65d
      Ben Coburn authored
        - Enables gzip compression of output xhtml for browsers that support it.
          For example the wiki:syntax page takes up 46.80KB raw, but only 9.88KB gzip encoded.
        - Setting is configurable through the config plugin.
      
      darcs-hash:20060516084132-05dcb-d8d1c7911a951b00e166c5a94f46a2cf1cfa5846.gz
      524be65d
    • Ben Coburn's avatar
      jpg quality option · 2b03e74d
      Ben Coburn authored
        - Adds a jpg quality setting for scaled images
          (Some images were getting too many jpg artifacts
           at the hard-coded compression setting.)
        - Creates a group for the media settings in the
          config plugin.
      
      darcs-hash:20060516062321-05dcb-a175b0de3264322a335cf60d8ee96317f7b03144.gz
      2b03e74d
  22. Apr 17, 2006
  23. Mar 24, 2006
    • Ben Coburn's avatar
      RSS update time and 304 Not Modified · fbf82939
      Ben Coburn authored
        - Gives the wiki administrator control over how often the RSS feed is regenerated.
        - The RSS feed now handles conditional requests and returns HTTP '304 Not Modified'
          responses when possible.
      
      darcs-hash:20060324133315-05dcb-3b814e28523f2a0717222a4940d6fbbb28576cf5.gz
      fbf82939
  24. Mar 11, 2006
    • Andreas Gohr's avatar
      Automatic draft saving · ee4c4a1b
      Andreas Gohr authored
      DokuWiki now automatically creates a draft file of the currently edited
      page. In case of an editing interuption (eg. Browsercrash) the draftfile
      can be continued later.
      
      darcs-hash:20060311200148-7ad00-919337a51e001136178d175a1755cd26122e9726.gz
      ee4c4a1b
  25. Mar 05, 2006
  26. Mar 04, 2006
    • Andreas Gohr's avatar
      simplified file permission handling · 1ca31cfe
      Andreas Gohr authored
      This patch simpliefies the configuration of the file and directory creation
      modes. There is no need to set the umask anymore. Only the wanted permissions
      for files and directories are set. An init function compares the wanted modes
      with the ones that would be choosen by the system automatically (consulting
      the system's umask) and sets the modes for chmod when needed.
      
      darcs-hash:20060304154038-7ad00-5ef1db3a87e42563a602f9d050c681d2ea74682f.gz
      1ca31cfe
  27. Mar 03, 2006
  28. Mar 02, 2006
    • Andreas Gohr's avatar
      no default targets · b7441779
      Andreas Gohr authored
      Using the target attribute is considered bad practice. This patch removes
      the default targets from dokuwiki.conf and fixes the footer.html of the
      default template accordingly
      
      darcs-hash:20060302134306-6e07b-cae2e54472687abb50f7cb97bd6c479b7c7d97d7.gz
      b7441779
    • Andreas Gohr's avatar
      mimetypes and icons for opendocument formats #722 · a794f25d
      Andreas Gohr authored
      darcs-hash:20060302105634-6e07b-217c0dfad45ce76f5d4ba155379947c41f5216f5.gz
      a794f25d
    • Andreas Gohr's avatar
      Allow non-ID names in ACLs · 6c2bb100
      Andreas Gohr authored
      Some auth backends allow special chars like whitespaces in user and group
      names. This made problems with the existing ACL checks and ACL manager.
      This patch makes the ACL system work with these cases by (url)encoding all
      special chars below 128.
      
      darcs-hash:20060302101850-6e07b-14bda9dbdb3528904325419b35bb9eddb0d1dde3.gz
      6c2bb100
  29. Feb 24, 2006
    • Troels Liebe Bentsen's avatar
      Fix umask bug and do a code cleanup of chmod/mkdir usage so set the correct... · 44881d27
      Troels Liebe Bentsen authored
      Fix umask bug and do a code cleanup of chmod/mkdir usage so set the correct permissions, this should also fix problems with dokuwiki making setuid files on some umasks.
      
        * Don't set the umask() anymore, this is not good form and we don't really know what is it in the old code anyway as it was not done properly.
        * Retire the dmask config option introduce 2 new ones called fmode and dmode, this is more in line with posix and should make more sense.
        * Use chmod for setting the correct permissions but only if it's needed.
        * Set changing of permissions off by default as i should work properly in most Apache setups without and it does not make sense on windows anyway.
      
      darcs-hash:20060224211655-ee6b9-68f7bb59417d6f0033cfd3764146923daa4dcf1b.gz
      44881d27
  30. Feb 18, 2006
  31. Feb 24, 2006
  32. Feb 10, 2006
    • Andreas Gohr's avatar
      romanization support in utf8 library · 8a831f2b
      Andreas Gohr authored
      This patch addes basic romanization support to the utf-8 library. It
      converts non-latin languages to ASCII.
      
      The transliteration tables used where gathered from various places
      on the net. I do not speak any of those languages so I can't say how
      good they are. Any recommendations and fixes are welcome!
      
      This can be enabled for ID cleaning by setting the deaccent option to 2.
      It is also used in the XHTML renderer to generate section ids based
      on the header titles. Leading digits and any remaining non-ASCII chars
      are removed as well. This is the first step to make section ID always
      XHTML compatible. Making sure they are unique is not implemented yet.
      
      darcs-hash:20060210200627-7ad00-61a633563bb92a00ef4a3f699d73117139cbf367.gz
      8a831f2b
Loading