aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
Commit message (Collapse)AuthorAge
* getargv needs to return a list referenceJoey Hess2008-03-19
| | | | | | xml rpc only allows functions to return a single value, no lists. So getargv needs to return a list reference, which means that the caller will see an xml rpc array.
* * Record new pages in %pagesources temporarily when previewing so thatJoey Hess2008-03-17
| | | | | things that need to know the page source or type can query it from there. Fixes previewing of tables when creating a new page.
* * external: Add getargv and setargv methods to allow access to ikiwiki'sJoey Hess2008-03-15
| | | | @ARGV.
* * htmltidy: Pass --markup yes, in case tidy's config file disabled it.Joey Hess2008-03-15
|
* * external: Fix support of XML::RPC::fault.Joey Hess2008-03-15
|
* * Fix expiry of old recentchanges changeset pages.Joey Hess2008-03-14
|
* load HTML::Entities at topJoey Hess2008-03-14
| | | | Used in several subs, not all of which load it on demand, this seems simpler.
* no need to use HTML::Entities, as it's loaded on demand by code belowJoey Hess2008-03-12
|
* * Use absolute url for feedurl when filling out the feed templates.Joey Hess2008-03-12
| | | | Closes: #470530
* truncate recentchangesdiffs after 200 linesJoey Hess2008-03-12
| | | | | | | This works around a perl crasher bug, and also avoids bloating pages with enormous diffs. rcs_recentchanges modified to return a list in an array context.
* use git show to get the diffJoey Hess2008-03-12
| | | | | If a diff of the firsst commit in a git repo was requested, it would fail and print to stderr since first^ isn't valid. Using git show will always work.
* * Use forcebaseurl to make page previews be displayed with the html baseJoey Hess2008-03-12
| | | | | | set to the destination page. This avoids need for hacks to munge the urls in preview mode, which fixes several bugs. * Several destpage fixes in plugins.
* * monotone: Require version 0.38 or greater, and stop using the mtnmergercJoey Hess2008-03-12
| | | | option. (Brian May)
* fix syntax errorJoey Hess2008-03-12
|
* Correct meta.robots attribute value->contentmartin f. krafft2008-03-11
| | | | | | | This was a silly typo, sorry. <meta ...> takes an attribute content, not value. Signed-off-by: martin f. krafft <madduck@madduck.net>
* Generate openid2 headers as wellmartin f. krafft2008-03-11
| | | | | | This causes meta.openid to also generate the openid2 headers. Signed-off-by: martin f. krafft <madduck@madduck.net>
* Let meta.openid set X-XRDS-Location headermartin f. krafft2008-03-11
| | | | | | | | | | Adds an optional xrds-location parameter to the openid meta handler, which allows for XRDS delegation. A good document on XRDS is http://www.windley.com/archives/2007/05/using_xrds.shtml Signed-off-by: martin f. krafft <madduck@madduck.net>
* * Remove locking code in git rcs_commit. I'm not sure if this was everJoey Hess2008-03-07
| | | | | | correct, and it's certianly not correct now, since the wiki is locked before rcs_commit is ever called, and should not be unlocked by rcs_commit either.
* test for Text::Markdown::[Mm]arkdown and use the available oneJoey Hess2008-03-04
| | | | | | | | | | Markdown is such a splintered mess.. The current debian package provides only Text::Markdown::Markdown, while all versions of Text::Markdown support Text::Markdown::markdown, and old versions also support the capitalised version, while new ones don't. It's getting to the point where `grep /markdown/i %symbol_table` is the only sane way to figure out what function to call..
* * Use Text::Markdown::markdown, since version 1.0.16 of Text::MarkdownJoey Hess2008-03-04
| | | | | no longer supports Text::Markdown::Markdown. All old versions of Text::Markdown also support the lower-case version.
* * Add recentchangesdiff plugin that adds diffs to the recentchanges feeds.Joey Hess2008-03-03
| | | | | | * rcs_diff is a new function that rcs modules should implement. * Implemented rcs_diff for git, svn, and tla (tla version untested). Mercurial and monotone still todo.
* Add robots tag to meta pluginmartin f. krafft2008-03-02
| | | | | | | | Add special handling for <meta name="robots" ...> which needs not be scrubbed as it's harmless. Signed-off-by: martin f. krafft <madduck@madduck.net> (cherry picked from commit b15d0299a7f7b147e89d8a202d6cca1c21491af2)
* Make directives generated by shortcuts accept a `desc` parameter.Adeodato Simó2008-03-02
| | | | (cherry picked from commit 252da396bfa728b99af7c9bb304a7b5f3f6d94e6)
* Allow colons in URLs after the first slashAdeodato Simó2008-02-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A new regexp fixes this bug: http://ikiwiki.info/bugs/No_link_for_blog_items_when_filename_contains_a_colon/ I traced this down to htmlscrubber. If disabled, it works. If enabled, then $safe_url_regexp determines the URL unsafe because of the colon and hence removes the src attribute. Digging into this, I find that RFC 3986 pretty much discourages colons in filenames: """ A path segment that contains a colon character (e.g., "this:that") cannot be used as the first segment of a relative-path reference, as it would be mistaken for a scheme name. Such a segment must be preceded by a dot-segment (e.g., "./this:that") to make a relative- path reference. """ on the other hand, with usedirs, any link to another page will be prepended by ../ anyway, so that makes them okay again. The solution still seems not to use colons. In any case, htmlscrubber should get a new regexp, courtesy of dato. I have tested and verified this. Signed-off-by: martin f. krafft <madduck@madduck.net>
* avoid calling getctime on internal pagesJoey Hess2008-02-24
| | | | internal pages won't be in revision control so this avoids some ugly noise
* * inline: When forcing urls absolute for rss feeds, skip mailto and otherJoey Hess2008-02-24
| | | | such urls.
* Fix links generated by preprocessor directives when previewing.Joey Hess2008-02-24
| | | | | | | | | | As was already done for linkfication, links generated in a prevew page are relative to the top of the wiki, so it has to be told that the destpage is there. I was using "" to indicate this, but that may confuse some preprocessor plugins, which treat parameters with an empry value specially (sparkline is one such). Instead, use "/", which is more accurate anyway and works just as well.
* * Fix another preview will_render bug. This one involved inline,Joey Hess2008-02-24
| | | | | | | | which forced a scan of the page to make available metadata that appeared after the inline directive. Problem is that scan made it forget about any other files rendered due to the page. The scan also turns out to be unnecessary now, since meta persistently stores state and it's always available. So it was just removed.
* * tla: Remove call to escapeHTML when constructing recentchanges message;Joey Hess2008-02-20
| | | | | the html is escaped at a different level. Closes: #466495 * bzr, mercurial: Remove unused import of escapeHTML.
* * monotone: Add code to default mergerc file to runJoey Hess2008-02-14
| | | | _MTN/ikiwiki-netsync-hook when a commit is merged in from the net.
* * Preview limits the page dropdown to what's selected previouslyJoey Hess2008-02-14
| | | | | | | | (as preserving the full list across preview would be tricky). Userdirs were still being offered as an option there, remove them. * Fix a bug where user A created a page concurrently with user B, and when B previewed it would redirect B to A's new page, losing B's work. Instead, don't redirect and let conflict handling resolve it.
* * The search plugin needs to override <base> to point to the directoryJoey Hess2008-02-14
| | | | | | containing ikiwiki.cgi, but this should not change the urls to the style sheets etc. Add a new forcebareurl parameter to misctemplate to allow it to do that.
* * camelcase: Convert to use new linkify and scan hooks rather than the oldJoey Hess2008-02-11
| | | | hack.
* * Add the linkify and scan hooks. These hooks can be used to implementJoey Hess2008-02-11
| | | | | | custom, first-class types of wikilinks. * Move standard wikilink implementation to a new wikilink plugin, which will of course be enabled by default.
* * Generate XML RPC messages with the encoding set to utf-8 insteadJoey Hess2008-02-11
| | | | | | of XML::RPC's default of us-ascii. Allows interoperation with python's xmlrpc library, which threw invalid encoding exceptions and caused the rst plugin to hang.
* use quotemeta when building the regexpJoey Hess2008-02-10
|
* Allow the smb: URI scheme.Josh Triplett2008-02-10
|
* Allow the snews: URI scheme.Josh Triplett2008-02-10
|
* Do not allow the steam: URI scheme.Josh Triplett2008-02-10
|
* Match literal '.' in URI schemas containing '.', rather than matching any ↵Josh Triplett2008-02-10
| | | | character
* * meta: Check that the urls provided for authorurl, permalink, and openidJoey Hess2008-02-10
| | | | are safe and can't contain javascript.
* export $safe_url_regexpJoey Hess2008-02-10
|
* Also filter the attributes cite, longdesc, and usemap, which can contain URIsJosh Triplett2008-02-10
|
* add parens around scheme regexpJoey Hess2008-02-10
|
* Do not allow the about: URI schemeJosh Triplett2008-02-10
| | | | | | Some browsers interpret about: URIs like a limited version of data: URIs. In particular, some versions of Internet Explorer interpret arbitrary HTML content in about: URIs.
* fix data:image handlingJoey Hess2008-02-10
|
* * htmlscrubber security fix: Block javascript in uris.Joey Hess2008-02-10
| | | | * Add htmlscrubber test suite.
* Merge branch 'master' into prefix-directivesJosh Triplett2008-02-09
|\ | | | | | | | | | | | | Conflicts: debian/changelog templates/change.tmpl
| * * Page templates can now use CTIME to show when the page was created.Joey Hess2008-02-09
| |
| * * Don't die if running with --getctime and rcs_getctime throws an error.Joey Hess2008-02-07
| | | | | | | | | | There are several cases (recentchanges files, aggregated files) where some source files are not in revision control.