summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
AgeCommit message (Collapse)Author
2010-02-11reorder canedit checks during page creation to have best_loc firstJoey Hess
When creating a page, multiple locations are tested to see if they can be edited. If all fail, one of the failure subs is called, to log the user in to allow them to proceed with the edit. So far so good. But, what if some pages fail for one reason, and some for another? This occurs when httpauth_pagespec is used in conjunction with signinedit (and openid or something). When the user is not signed in at all The former will fail to edit a page because the user was not httpauthed. The latter will fail to edit a different page, because the user was not signed in. One of their failure methods gets to run first. The page creation code always ran the failure method corresponding to the topmost page location. So, when editing a foo/Discussion page, and with httpauth_pagespec => "*!/Discussion", it ran the httpauth failure method, which was exactly the wrong thing to do. I fixed this by making it instead run the failure method for the *best* page location. In the above example, that's foo/Discussion, so signinedit runs, as desired, and we get the signin page. This seems like it will be the right choice, or at least an acceptable choice. If a user wants to use httpauth they can always choose it on the signin page.
2010-02-11partially fix httpauth canedit hookJoey Hess
My logic was right before. Cleaned up some code. (Page creation is still a problem.) Also, I removed the Edit url munging, because that is not necessary with the canedit hook, since canedit will handle redirection through cgiauthurl if necessary.
2010-02-11fix logic errorJoey Hess
2010-02-11httpauth: Add httpauth_pagespec setting that can be used to limit pages to ↵Joey Hess
only being edited via users authed with httpauth.
2010-02-11httpauth: When cgiauthurl is configured, httpauth can now be used alongside ↵Joey Hess
other authentication methods (like openid or anonok). Rather than always redirect to the cgiauthurl for authentication, there is now a button on the login form to use it.
2010-02-11patch so farJoey Hess
2010-02-09amazon_s3: Fix to support the EU S3 datacenter, which is more picky about ↵Joey Hess
attempts to create already existing buckets.
2010-02-06Fix color and format plugins to appear in the websetup interface.Joey Hess
2010-02-06opendiscussion: This plugin will also now allow posting commentsJoey Hess
to otherwise locked-down sites.
2010-02-06ensure opendiscussion hook is always called before lockeditJoey Hess
This was only ordered ok due to luck before.
2010-02-05revert accidental code changeJoey Hess
2010-02-05responseJoey Hess
2010-02-04factor out a userpage functionJoey Hess
Not yet exported, as only 4 quite core plugins use it.
2010-02-04Add link to userpage (or creation link) to top of preferences page.Joey Hess
2010-02-04typoJoey Hess
2010-02-04Improve display of openid in preferences page.Joey Hess
Now that openiduser is in IkiWiki core, it's ok to have passwordauth check for it, and avoid displaying useless password fields when showing preferences for an openid. Also improved the styling of the display of the openid in the preferneces page.
2010-02-04Allow jumping directly into account registration process by going to ↵Joey Hess
ikiwiki.cgi?do=register
2010-01-28img: Fix a bug that could taint @links with undef values.Joey Hess
2010-01-26template: Preprocess parameters before htmlizing.Joey Hess
Consider a template like: [[!template type=note text=""" [[!inline pages="*foo*"]] """]] The text parameter is htmlized before being passed into the template (in case the template wraps it in a <span> that prevents markdown from htmlizing it later). But, when markdown sees "*foo*", it turns that into <em>foo</em>. Later, when preprocessing the inline directive, that leads to suprising results. To fix this, I made template parameters be preprocessed (and filtered) before being htmlized. Note that I left in the preprocessing (and filtering) of the template output at the end. That's still relevant when the template itself contains preprocessor directives.
2010-01-21po: avoid crash when page is emptyJoey Hess
Note that there is an associated po4a warning when a page is empty: Use of uninitialized value $file in substitution (s///) at /usr/share/perl5/Locale/Po4a/Text.pm line 205. I've filed a bug with po4a about that, but the important thing is fixing the crash here.
2010-01-19handle git-notes breakageJoey Hess
The new git-notes feature in git 1.6.6 changes git log output in a way that broke ikiwiki's parser if notes are added to commits. I decided to deal with this by disabling notes when ikiwiki uses git, by setting GIT_NOTES_REF="". AFAICS, looking up notes when dumping logs will only waste time, since it does not currently seem to make sense for ikiwiki to do anything with the notes.
2010-01-18brace style and layoutJoey Hess
2010-01-18clarify errorJoey Hess
2010-01-09linkmap: Simplify and improve browser compatability by using an img, not ↵Joey Hess
object tag. I noticed that chromium was not hyperlinking the areas in the object-based linkmap, while img works ok. Dunno why, but img based is nicer anyway since it is allowed right through the htmlscrubber with no workarounds.
2010-01-09websetup: Fix bug in array change detection.Joey Hess
2010-01-09websetup: Fix utf-8 problems.Joey Hess
2010-01-07only use css alignment stuff for tableJoey Hess
This way users can use all the other alignment values when not including a caption. Also, it will work without the standard style, and I don't have to worry about regressions this way.
2010-01-07img: remove special case handling of link=yesJoey Hess
Only exists as an undocumented backwards compatability hack.
2010-01-07refactorJoey Hess
2010-01-07brace styleJoey Hess
2010-01-06Support align attribute for img with captionGiuseppe Bilotta
This is achieved by preparing CSS definitions that emulates the behavior of the align attribute, and passing it to the outermost IMG wrapper (A or TABLE) instead of passing the align value to IMG directly.
2010-01-04comments: Fix permalinks for comments using new conflict-free filenames.Joey Hess
2010-01-04lockedit can make sense with no auth pluginsJoey Hess
On second though, you might want a wide-open wiki with some locked pages that cannot be edited online. So, the right thing for lockedit to do when there are no auth plugins is to just say the page cannot be edited.
2010-01-04lockedit: Detect if no authentication plugins are enabled, and die with an ↵Joey Hess
error message as this configuration does not make sense.
2010-01-04signinedit: Auto-disable the plugin when all authentication methods are ↵Joey Hess
disabled.
2010-01-04inline: Avoid showing edit links if page editing is disabled. (Sjoerd)Joey Hess
2010-01-02Fix several places that did not properly handle capitalization of the ↵Joey Hess
discussionpage setting. Specifically, fixes discussion actions on discussion pages, and unbreaks the opendiscussion plugin.
2010-01-02Merge remote branch 'tove/master'Joey Hess
2010-01-02Terminate the arrow entities with ";"Torsten Veller
2010-01-01inline: Fix bug that limited displayed pages when feedshow was specified w/o ↵Joey Hess
show.
2010-01-01linkmap: Add option to omit disconnected pages from the map.Joey Hess
2009-12-30comments: Add a checksum to the name of comment pages, to avoid merge ↵Joey Hess
conflicts when comments are posted to two branches of a site.
2009-12-25toc: Add startlevel parameter. (kerravonsen)Joey Hess
2009-12-25pagestats: Add show parameter. Closes: #562129Joey Hess
2009-12-14404/goto: Fix 404 display of utf-8 pages.Joey Hess
Problem here was that no charset http header was being sent. I fixed this globally by making cgi_custom_failure send the header. Required changing its parameters.
2009-12-14404: fix utf-8 encoding of REDIRECT_URLJoey Hess
2009-12-14remove: Fix problem removing pages with utf-8 in the name.Joey Hess
2009-12-14attachment: Fix reversion in attachment sorting by age.Joey Hess
Reversion was introduced by over-eager removal of mtime_raw in 2b569f99d9e7f1d4d30c7f3adde9729ff4d868cf
2009-12-14attachment: Fix several utf-8 problems.Joey Hess
Similar to those in the rename plugin, although here we can't use the form object.
2009-12-14rename: Fix some utf-8 problems.Joey Hess
The crux of the problem is that the cgi object has raw values not converted to utf-8, and rename was using its fields. Also fixed a missed place where the form object did not get its fields utf-8 encoded.