Joey Hess
8be2b60aac
* The search plugin needs to override <base> to point to the directory
...
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.
2008-02-14 15:20:49 -05:00
Joey Hess
1de1fb15a0
* camelcase: Convert to use new linkify and scan hooks rather than the old
...
hack.
2008-02-11 23:04:19 -05:00
Joey Hess
4763514861
* Add the linkify and scan hooks. These hooks can be used to implement
...
custom, first-class types of wikilinks.
* Move standard wikilink implementation to a new wikilink plugin, which
will of course be enabled by default.
2008-02-11 22:48:27 -05:00
Joey Hess
4aab5f0a73
* Generate XML RPC messages with the encoding set to utf-8 instead
...
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.
2008-02-11 00:11:49 -05:00
Joey Hess
c6fc554c54
use quotemeta when building the regexp
2008-02-10 19:02:12 -05:00
Josh Triplett
728dfd9595
Allow the smb: URI scheme.
2008-02-10 15:08:56 -08:00
Josh Triplett
502cd00ec7
Allow the snews: URI scheme.
2008-02-10 15:05:11 -08:00
Josh Triplett
ec9d3ab549
Do not allow the steam: URI scheme.
2008-02-10 14:59:08 -08:00
Josh Triplett
3cda22a27f
Match literal '.' in URI schemas containing '.', rather than matching any character
2008-02-10 14:50:30 -08:00
Joey Hess
bbcf878f75
* meta: Check that the urls provided for authorurl, permalink, and openid
...
are safe and can't contain javascript.
2008-02-10 17:17:44 -05:00
Joey Hess
4bfdbd4858
export $safe_url_regexp
2008-02-10 17:07:21 -05:00
Josh Triplett
d20e24b636
Also filter the attributes cite, longdesc, and usemap, which can contain URIs
2008-02-10 13:59:37 -08:00
Joey Hess
2078f706d6
add parens around scheme regexp
2008-02-10 16:29:46 -05:00
Josh Triplett
a7be7bdf56
Do not allow the about: URI scheme
...
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.
2008-02-10 13:23:28 -08:00
Joey Hess
dfd6bb3854
fix data:image handling
2008-02-10 15:24:03 -05:00
Joey Hess
d7e0c035e5
* htmlscrubber security fix: Block javascript in uris.
...
* Add htmlscrubber test suite.
2008-02-10 13:16:40 -05:00
Josh Triplett
122f6df325
Merge branch 'master' into prefix-directives
...
Conflicts:
debian/changelog
templates/change.tmpl
2008-02-09 23:02:52 -08:00
Joey Hess
f1fcb5be9c
* Page templates can now use CTIME to show when the page was created.
2008-02-09 23:05:48 -05:00
Joey Hess
63e316f362
* Don't die if running with --getctime and rcs_getctime throws an error.
...
There are several cases (recentchanges files, aggregated files)
where some source files are not in revision control.
2008-02-07 22:11:54 -05:00
Joey Hess
a4b2e77077
add support for prefix_directives
2008-02-05 16:14:38 -05:00
Joey Hess
f64ef7deb6
proper fix for the preview/will_render issue
2008-02-04 18:46:34 -05:00
Joey Hess
b37dc9c926
preview shouldn't show the feed buttons or post form
2008-02-04 18:44:54 -05:00
Joey Hess
bf522a347f
* inline: Add new `allowrss` and `allowatom` config options. These can be
...
used if you want a wiki that doesn't default to generating rss or atom
feeds, but that does allow them to be turned on for specific blogs.
2008-02-04 18:36:50 -05:00
Joey Hess
85de2f7bc4
the old code worked, suprisingly, but I prefer this form
2008-02-04 18:05:40 -05:00
Joey Hess
d1c4899a22
* inline: When previewing, still call will_render on rss/atom files,
...
just avoid actually writing the files. This is necessary because ikiwiki
saves state after a preview (in case it actually *did* write files),
and if will_render isn't called its security checks will get upset
when the page is saved. Thanks to Edward Betts for his help tracking this
tricky bug down.
2008-02-04 17:58:23 -05:00
Joey Hess
a3f224cb6c
move saveindex call into preview block
...
This call is only present to handle the case where previewing a page
actually causes files to be rendered.
2008-02-03 19:51:00 -05:00
Joey Hess
408419ca3e
remove another commit mail mention
2008-02-03 19:47:01 -05:00
Joey Hess
27d5f91a18
remove spurious EOF
2008-02-03 18:16:19 -05:00
Joey Hess
749c1e36d9
* monotone changes by Brian May:
...
- On commits, replace "mtn sync" bidirectional with "mtn push" single
direction. No need to pull changes when doing a commit. mtn sync
is still called in rcs_update.
- Support for viewing differences via patches using viewmtn.
2008-02-03 18:14:39 -05:00
Joey Hess
9d54cc4659
implement aggregate_locking design
...
Now aggregation will not lock the wiki. Any changes made during aggregaton are
merged in with the changed state accumulated while aggregating. A separate
lock file prevents multiple concurrent aggregators. Garbage collection
of orphaned guids is much improved. loadstate() is only called once
per process, so tricky support for reloading wiki state is not needed.
(Tested fairly thuroughly.)
2008-02-03 16:48:26 -05:00
Joey Hess
38affb0c1c
add aggregate locking functions
2008-02-03 15:17:15 -05:00
Joey Hess
e57749b702
* recentchanges: Exipre all *._change pages, even if the directory
...
they're in has changed.
2008-02-03 14:51:03 -05:00
Joey Hess
340fe9707c
* recentchanges: Improve handling of links on the very static changes pages
...
by thunking to the CGI, which can redirect to the page, or allow it to be
created if it doesn't exist.
2008-02-03 14:48:20 -05:00
Joey Hess
42e5b8dfdc
prototype fix
2008-02-03 14:22:25 -05:00
Joey Hess
1f6591f0a6
* aggregate: Revert use of forking to not save state, that was not the right
...
approach.
2008-02-03 03:04:19 -05:00
Joey Hess
9f60272831
* poll: This plugin turns out to have edited pages w/o doing any locking.
...
Oops. Convert it from a cgi to a sessioncgi hook, which will work
much better.
2008-02-03 00:26:00 -05:00
Joey Hess
80915c830a
* cgi hooks are now run before ikiwiki state is loaded.
...
* This allows locking the wiki before loading state, which avoids some
tricky locking code when saving a web edit.
2008-02-03 00:23:04 -05:00
Joey Hess
0779013683
* aggregate: Forking a child broke the one state that mattered: Forcing
...
the aggregating page to be rebuilt. Fix this.
2008-02-02 23:56:13 -05:00
Joey Hess
6a7c3d1209
* Revert preservation of input file modification times in output files,
...
since this leads to too many problems with web caching, especially with
inlined pages. Properly solving this would involve tracking every page
that contributes to a page's content and using the youngest of them all,
as well as special cases for things like the version plugin, and it's just
too complex to do.
2008-02-02 23:40:57 -05:00
Joey Hess
870adf3bbf
move openiduser function to the openid plugin
2008-01-30 02:39:17 -05:00
Joey Hess
55e16be44a
move recentchanges link enabling into a pagetemplate hook
2008-01-30 02:29:12 -05:00
Jelmer Vernooij
246e93a300
Expand file-id in diffurl in the bzr backend.
2008-01-30 02:29:28 +01:00
Joey Hess
4284719464
rename bazaar -> bzr after discussion with jelmer
2008-01-29 19:48:30 -05:00
Joey Hess
381ac0f667
commit only the changed file
2008-01-29 19:44:26 -05:00
Joey Hess
274fb90026
stylistic changes
...
Remarkably few. Also, I removed the stub for the obsolete rcs_notify function.
2008-01-29 19:36:35 -05:00
Joey Hess
cddc335b2b
Merge git://git.samba.org/jelmer/ikiwiki
2008-01-29 19:28:51 -05:00
Joey Hess
f584abec0c
really fix the baseurl problem
...
the issue is that HTML::Template doesn't expand top-level variables when inside
a loop
2008-01-29 18:19:47 -05:00
Joey Hess
9e15bd27ea
avoid temp var
2008-01-29 18:07:20 -05:00
Joey Hess
7125c7269a
don't scan internal pages
...
scan() does too much. All that is needed is to preprocess the internal page
in scan-only mode.
2008-01-29 18:06:36 -05:00
Joey Hess
3803266b8f
merged the recentchanges branch
...
misc fixes
2008-01-29 17:50:11 -05:00