aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/CGI.pm
Commit message (Collapse)AuthorAge
* * Change order of linkify and preprocess; first preprocess and then linkify.joey2006-08-23
| | | | | | | | | | This allows passing a wikilink inside a parameter to a preprocessor directive without it being expanded to html, and leaking out of the parameter, which had required some non-obvious use of triple-quoting to avoid. Note that any preprocessor plugins that output something that looks like a wikilink will now have it treated as such; AFAIK this doesn't change any behavior though except for the template plugin. * Enable preprocessor directives when previewing an edit.
* * Fixed a bug with previews of subpages having broken links to top-leveljoey2006-08-21
| | | | | | | | pages. * Change how the stylesheet url is determined in the templates: Remove STYLEURL and add BASEURL to all templates (some already had it). This new more general variable can be used to link to other things (eg, images) from the template, as well as stylesheets.
* * Fix utf-8 in blog post form.joey2006-08-20
|
* * Fix a bug in page type determination during online editing.joey2006-08-13
|
* * The last release accidentially installed ikiwiki as ikiwiki.pl, now fixed.joey2006-08-13
| | | | | | | | | | | | | | * Add --version. * Man page format fixups. * Add a %pagecase which maps lower-case page names to the actual case used in the filename. Use this in bestlinks calculation instead of forcing the link to lowercase. * Also use %pagecase in various other places that want to check if a page with a given name exists. * This means that links to pages with mixed case names will now work, even if the link is in some other case mixture, and mixed case pages should be fully supported throughout ikiwiki. * Recommend rebuilding wikis on upgrade to this version.
* * Renamed GlobLists to PageSpecs.joey2006-08-02
| | | | | | | | | | | | | | * PageSpecs can now include nested parens, "and", and "or". This remains backwards compatible to the old GlobList format. It's implemented by treating the GlobList as a very limited microlanguage that is transformed to perl code that does the matching. * The old GlobList format is deprecated, and I encourage users to switch to using the new PageSpec format. Compatability with the old format will be removed at some point, possibly by 2.0. * Wiki rebuild needed on upgrade to this version due to PageSpec change. * Add support for creation_month and creation_year to PageSpec. Closes: #380680 * Changes to index file encoding.
* avoid message if mailing password or registeringjoey2006-07-30
|
* * Add a run_hooks function for the common task of running all hooks of ajoey2006-07-30
| | | | | | | given type. * Add a savestate hook. * Don't put blog post forms on pages if there's no cgiurl set. * Reformat front page.
* * Run page through any relevant filters when generating a page preview.joey2006-07-26
| | | | | | | * Noticed a bug in the wikitext markup plugin -- it made CamelCase links the default throughout the wiki, not only on wikitext pages. Decided to call this a feature, and split the camelcase support out into a separate plugin that is independant of wikitext.
* * Patch from Recai to allow selection of page type when creating a new page.joey2006-07-26
| | | | | Default page type is inherited from the link clicked on to create the new page.
* <paravoid> you're rightjoey2006-07-11
| | | | | | | <paravoid> I can't explain it <paravoid> but it's definitely fixing it <paravoid> I triple-checked...
* remove redundant calljoey2006-07-11
|
* * Consolidated all decode_utf8 in FormBuilder's fields to make the code morejoey2006-07-11
| | | | | | readable and avoid future mistakes. The patch seems to work and for the first time I have a UTF-8 username ;-) (Faidon) * Use form->field consistently, not form->param.
* * Display CGI processing errors if present.joey2006-07-10
|
* * Support a w3mmode, which lets w3m run ikiwiki using its local CGIjoey2006-07-07
| | | | support, to edit pages etc without a web server.
* Encode:: cleanup from Recaijoey2006-07-05
|
* * Encode & in diffurl in examples, to conform to pedantic rules.joey2006-07-04
| | | | * Speed up RecentChanges by another 40% or so with some memoization.
* remove leading dot from default_pageextjoey2006-07-04
| | | | | | fix preview to not assume it's the default page type, and instead get the type from the page
* use "use open" pragma to avoid manually needing to specify utf8 everywherejoey2006-07-03
| | | | | | | and also to set default stdio mode change filetype to return undef, not "unknown"
* Encode is used in nearly all code paths so stop loading it on demandjoey2006-07-03
|
* * Support pages with utf8 filenames. Patch by Faidon Liambotis.joey2006-07-03
|
* * Centralised all calls to HTML::Template and force all the templatesjoey2006-07-02
| | | | to be read as utf8.
* new approach for forcing utf8 -- use a HTML::Template filterjoey2006-07-02
|
* * POSIX::strftime doesn't know about encodings and doesn't return a utf8joey2006-07-02
| | | | | | | | | | | | | | flagged string even if the locale causes it to generate utf8 output, so make sure to let perl know it should be handled as utf8. Also, the optimised version used for standard time formats won't work if the user has changed locale, so drop it. Thanks, Faidon Liambotis. * Fix re-encoding of the comments field to utf8 if a commit fails due to a conflict. Thanks, Faidon Liambotis. * Let svn know that commits have utf8 commit messages. Thanks, Faidon Liambotis. * Add insane double encode/decode to utf8 around call to markdown. This works around a truely strange bug, which is apparently a bug in perl, which I lack space to describe here (see t/crazy-badass-perl-bug.t)
* * Parse svn log as xml for improved utf8 and security. Note that this makesjoey2006-07-02
| | | | ikiwiki depend on XML::Simple. Patch by Faidon Liambotis.
* - Add 'use encoding "utf8"' to CGI.pm to avoid warnings about widejoey2006-06-17
| | | | character in print.
* * More utf-8 fixes from Recai, partly to things I broke above:joey2006-06-17
| | | | | | | | - The serious problem is that writefile() saves the content in undecoded format in CGI, hence all (non-ascii) chars are corrupted permanently. - Comment field in edit page is not decoded and all the non-ascii chars in this field are corrupted as the result. We should decode it as we do it for the content.
* * -CSD does not affect modules, so readfile() was not using the utf-8 inputjoey2006-06-15
| | | | | | | | | | | layer, which led to lots of problems; make it force read files as utf-8. Closes: #373203 * writefile() likewise needs to use the utf8 output layer. * Remove the -CSD from ikiwiki's hashbang since it's useless to have it there. * Revert some of the decode_utf8 changes in CGI.pm that seem unnecessary given the readfile fix. * Add utf-8 testcases for readfile and htmlize.
* * YA utf-8 patch from Recai, this time to fix previewing a page so thatjoey2006-06-15
| | | | the text in the input box is re-encoded back to utf-8.
* * Patch from Recai Oktaş to improve utf-8 support, it should now use properjoey2006-06-11
| | | | | utf-8 for edit and other fields, and for recentchanges. There may still be utf-8 issues with the preferences page though.
* * Add -refresh option to ikiwiki-mass-rebuild and use that on upgrades thatjoey2006-05-27
| | | | do not need a full rebuild, in order to update any basewiki pages.
* * --getctime had bitrotted (well I only ever used it the once so far..),joey2006-05-26
| | | | | | | | | | | | * When inlining a page in another one, links from the inlined page are now expanded the same as they are when rendering the inlined page as a standalone page. So rather than being expanded from the POV of the inlining page, they are expanded from the POV of the inlined page. For example, a link from blog/foo to "bar" will now link to blog/bar if it exists. Previously this needed to be a link explicitly to "blog/bar"; such links will also continue to work. (This was slightly complex to do as the link still has to be constructed relative to the inlining page.)
* * Rebuilding on upgrade to this version is recommended.joey2006-05-26
| | | | | | | | * Add a html validity check to the test suite, using the wdg-html-validator, if available. * Make the html valid when there is nothing in the actions list by adding an empty <li> to the end of it. * Reordered some function call parameters for consistency.
* rather a lot of changes to make hyperestraier search be a plugin, allowingjoey2006-05-03
| | | | | | | | | | | | | | for other types of search engine plugins if wanted, and also opening up a lot of new possibilities for other kinds of plugins later some notable changes along the way: - lots of new hook types: cgi, render, delete - wrapper files fixed to support config strings with newlines in them - HEADERCONTENT in page template useful for plugins. Probably needs to be expanded to more such for other places plugins might want to add content. - remove unnecessary wrappers field from config info stored in wrappers
* * Split off an IkiWiki.pm out of ikiwiki and have all the other modules usejoey2006-05-02
| | | | it, this will allow for adding a unit test suite.
* fix undef warningjoey2006-05-02
|
* * Smarter behavior when creating a page and a page of the same name (butjoey2006-05-02
| | | | different location) already exists.
* - fix typojoey2006-04-25
| | | | | - avoid sending commit mails to the user who made the commit
* prevent users from registering with name that is not a valid wikifilejoey2006-04-25
| | | | | avoids XSS attacks and is generally a good limitation
* fix a deadloop if from ended in a /joey2006-04-25
|
* subscription nearly donejoey2006-04-25
|
* commit changes for email subscriptionsjoey2006-04-24
|
* fix --anonokjoey2006-04-14
|
* Verified that the action parameter on cgi forms is needed for at least thejoey2006-04-04
| | | | | prefs form. Use $config{cgiurl}.
* comment out action => $q->request_uri setting, which is reporedlyjoey2006-04-02
| | | | | | unnecessary and doesn't work with old CGI.pm's (it's an undocumented variable)
* - add <base> to cgi output, this is especially useful for output containingjoey2006-04-02
| | | | | | | | | | | wikilinks since the urls should work now in more situations - drop --limit from svn log run, since a) it needs a fairly new svn and b) in some cases, it would limit it to too few entries to display the requested number of changes - Use driver:DB_File and not driver:db_file for better compatability with old versions of CGI::Session. - Note that HTML::Template 3.02.02 is needed.
* improved logicjoey2006-03-30
|
* added --hyperestraier switch, which turns on search supportjoey2006-03-29
| | | | | (ok, the way I run estseek.cgi is admittedly pretty nasty, but it works..)
* improve fix for symlink attacks to check subdirectories for symlinks toojoey2006-03-29
| | | | | before writing
* fix for replacing from underlayjoey2006-03-29
|