Skip to content
Snippets Groups Projects
  1. Apr 04, 2010
    • Andreas Gohr's avatar
      new fnencode option FS#1649 · f03fd957
      Andreas Gohr authored
      This patch adds an option to choose how filenames are encoded
      when saved to the file system. You can choose between urlencoding
      (url), the new SafeFn method (safe) and storing real UTF-8 (utf-8).
      f03fd957
    • Christopher Smith's avatar
      class for safely encoding filenames · 70e083ce
      Christopher Smith authored
      This class tries to satisfy the following requirements:
      
        * all ASCII alphanumeric chars in the input should stay the same
          ASCII alphanumeric chars in the output
        * the resulting string should be as short as possible
        * the operation needs to be reversable without any data loss
        * the resulting ASCII string should be case insensitive
        * there should be no restriction on the input length
        * the whole UTF-8 range should be allowed
      
      using it creates a way to store UTF-8 in filenames even if the
      underlying filesystem does not support UTF-8. It is also pretty
      robust when files are moved between various filesystems and it
      creates shorter filenames than the currently used urlencoding.
      70e083ce
    • Andreas Gohr's avatar
      Merge remote branch 'stretchyboy/master' · 550505f5
      Andreas Gohr authored
      550505f5
  2. Apr 03, 2010
  3. Apr 02, 2010
  4. Mar 31, 2010
  5. Mar 30, 2010
    • Michael Klier's avatar
      added support for plugin unittests · 08d7babf
      Michael Klier authored
      	This patch adds support to include plugin tests in the
      	DokuWiki testsuite. Plugin tests are located in a dedicated
      	directory _test/within a plugin directory. The naming
      	convention of the test files follows the one used in
      	DokuWikis testsuite.
      
      		<plugin>/_test/*.test.php 	-> single test
      		<plugin>/_test/*.group.php  -> group test
      
      	The plugin tests are accessible via the web interface
      	of the test suite and via the cli interface. It is recommend
      	to bundle plugin test in a plugin group test. The webinterface
      	also allows to run all plugin tests at once.
      
      	Test files must include:
      
      		<dokuwiki>/_test/lib/unittest.php
      
      	Example Test:
      
      	require_once(DOKU_INC.'_test/lib/unittest.php');
      	class plugin_test extends Doku_UnitTestCase {
      		function test() {
      			$this->assertEqual(1,1);
      		}
      	}
      
      	Example Group Test:
      
      	require_once(DOKU_INC.'_test/lib/unittest.php');
      	class plugin_group_test extends Doku_GroupTest {
      		function group_test() {
      			$dir = dirname(__FILE__).'/';
      			$this->GroupTest('plugin_grouptest');
      			$this->addTestFile($dir . 'plugin.test1.php');
      			$this->addTestFile($dir . 'plugin.test2.php');
      			$this->addTestFile($dir . 'plugin.test3.php');
      		}
      	}
      
      	At the moment unittest.php contains only two
      	meta classes so plugins tests don't have to inherit
      	from the simpletest classes.
      
      	This patch should be treated as intermediate step to
      	allow for plugin tests. The testsuite wasn't designed
      	to include plugin tests. It should probably be refactored
      	at a later point.
      08d7babf
  6. Mar 29, 2010
  7. Mar 26, 2010
  8. 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
    • Adrian Lang's avatar
      Fixed selffail. · 3371a8b4
      Adrian Lang authored
      3371a8b4
    • Adrian Lang's avatar
      Keep edit target information for preview · b7eccc60
      Adrian Lang authored
      b7eccc60
  9. Mar 23, 2010
  10. Mar 22, 2010
  11. Mar 18, 2010
Loading