aboutsummaryrefslogtreecommitdiff
path: root/t/comments.t
Commit message (Collapse)AuthorAge
* comments.t: Assert that comments get permalink metadataSimon McVittie2019-02-03
| | | | Signed-off-by: Simon McVittie <smcv@debian.org>
* comments.t: Exercise post-2009 comment namingSimon McVittie2019-02-03
| | | | | | Since commit 6af6c89d, comments are in files whose names contain a hash. Signed-off-by: Simon McVittie <smcv@debian.org>
* Exclude working directory from library path (CVE-2016-1238)Simon McVittie2016-07-28
| | | | | | | | | | | | | | | | | | | | | Current Perl versions put '.' at the end of the library search path @INC, although this will be fixed in a future Perl release. This means that when software loads an optionally-present module, it will be looked for in the current working directory before giving up. An attacker could use this to execute arbitrary Perl code from ikiwiki's current working directory. Removing '.' from the library search path in Perl is the correct fix for this vulnerability, but is not trivial to do due to backwards-compatibility concerns. Mitigate this (even if ikiwiki is run with a vulnerable Perl version) by explicitly removing '.' from the search path, and instead looking for ikiwiki's own modules relative to the absolute path of the executable when run from the source directory. In tests that specifically want to use the current working directory, use "-I".getcwd instead of "-I." so we use its absolute path, which is immune to the removal of ".".
* Run autopkgtest tests using autodep8 and the pkg-perl team's infrastructureSimon McVittie2015-11-30
|
* Standardize on --long-option instead of -long-optionSimon McVittie2015-03-01
| | | | | | | | | | [[forum/refresh_and_setup]] indicates some confusion between --setup and -setup. Both work, but it's clearer if we stick to one in documentation and code. A 2012 commit to [[plugins/theme]] claims that "-setup" is required and "--setup" won't work, but I cannot find any evidence in ikiwiki's source code that this has ever been the case.
* Fix comments testsuite to not rely on Date::Parse's ability to parse the ↵Joey Hess2011-09-05
| | | | | | | | | date Columbus discovered America. Closes: #640350 This is such a pity. smcv had these great dates, but squeeze's Date::Parse cannot parse them. Oh well, at least it makes for a great bug closure title.
* comments: add regression test for sorting by dateSimon McVittie2011-06-04