Commit Graph

5982 Commits (e62f3f8f951cca752eeebebba310dc51df392516)

Author SHA1 Message Date
Manoj Srivastava c207086282 Bug#473987: [PATCH] Links relative to baseurl mangled in atom/rss feeds
tag 473987 +patch
thanks
Hi,

The issue is that we need to convert relative links to absolute
ones for atom and rss feeds -- but there are two types of
relative links. The first kind, relative to the current
document ( href="some/path") is handled correctly. The second
kind of relative url is is relative to the http server
base (href="/semi-abs/path"), and that broke.

It broke because we just prepended the url of the current
document to the href (http://host/path/to/this-doc/ + link),
which gave us, in the first place:
 http://host/path/to/this-doc/some/path        [correct], and
 http://host/path/to/this-doc//semi-abs/path   [wrong]

The fix is to calculate the base for the http server (the base of
the wiki does not help, since the base of the wiki can be
different from the base of the http server -- I have, for example,
"url => http://host.name.mine/blog/manoj/"), and prepend that to
the relative references that start with a /.

This has been tested.

Signed-off-by: Manoj Srivastava <srivasta@debian.org>
2008-04-03 16:27:29 -04:00
Joey Hess a4dc0f997c Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2008-04-03 02:36:16 -04:00
Joey Hess de8c34df59 aggregate: Correct a mistake in the code that dummy up a guid for feeds lacking one. 2008-04-03 02:36:01 -04:00
Joey Hess 93d833da83 web commit by http://inthemedium.myopenid.com/: poll vote (Accept only OpenID for logins) 2008-04-02 22:52:46 -04:00
Joey Hess abb432ff4c many thanks to madduck for his donation 2008-04-02 15:04:58 -04:00
Joey Hess 614d97063c web commit by http://montyz.livejournal.com/: more make woes 2008-04-02 13:51:12 -04:00
Joey Hess c74b2e4b83 web commit by http://alcopop.org/me/openid/: formatting, tagging 2008-04-02 08:44:23 -04:00
Joey Hess c177d5c47e web commit by http://alcopop.org/me/openid/: minor documentation adjustment 2008-04-02 08:40:59 -04:00
Joey Hess f8abf8d190 web commit by http://claimid.com/bug 2008-04-01 22:44:17 -04:00
Joey Hess c9229bdeb6 web commit by http://jblevins.org/: A plain SVG version of the ikiwiki favicon 2008-04-01 19:14:09 -04:00
Joey Hess 2427bd01d6 web commit by http://jblevins.org/: My user page 2008-04-01 19:07:00 -04:00
Joey Hess 0d2076f85d web commit by http://jblevins.org/: Re: A make problem 2008-04-01 18:35:02 -04:00
Joey Hess b8e822f49f response 2008-04-01 17:10:26 -04:00
Joey Hess ce73bf59c5 web commit by http://montyz.livejournal.com/: A make problem 2008-04-01 13:04:14 -04:00
Joey Hess d9c08fcb15 add news item for ikiwiki 2.41 2008-03-29 21:17:27 -04:00
Joey Hess 5b8f2742f3 releasing version 2.41 2008-03-29 21:17:15 -04:00
Joey Hess f6bd81db15 Added a hardlink option in the setup file, useful if the source and dest are on the same filesystem and the wiki includes large media files, which would normally be copied, wasting time and space. 2008-03-29 21:02:47 -04:00
Joey Hess b95a86c069 wiki gnomes at work 2008-03-28 14:35:49 -04:00
Joey Hess 5c076a66d3 web commit by http://subvert.org.uk/~bma/: Add stylesheet. 2008-03-28 13:20:19 -04:00
Joey Hess f6ed73013f web commit by http://subvert.org.uk/~bma/: Link to new stylesheet. 2008-03-28 13:19:29 -04:00
Joey Hess 02f3343ce8 web commit by http://subvert.org.uk/~bma/: Update my URLs. 2008-03-28 13:07:23 -04:00
Joey Hess 16f3982344 web commit by http://certifi.ca/bronson 2008-03-28 00:57:49 -04:00
Joey Hess 23bdb631cb web commit by http://weakish.int.eu.org/: invalid link 2008-03-27 10:06:59 -04:00
Joey Hess 00e60d675c web commit from 78.106.64.225: poll vote (Accept only password logins) 2008-03-27 08:31:31 -04:00
Josh Triplett cdfbc6385d Remove explanation of ohloh shortcut; it seems obvious enough. 2008-03-26 18:16:58 -07:00
Josh Triplett 07ef42afee Add shortcut for ohloh projects. 2008-03-26 18:06:25 -07:00
Joey Hess 76a4a982b8 web commit by buo: Thanks 2008-03-25 16:12:34 -04:00
Joey Hess 48bf7dc458 web commit by buo: locales and mercurial 2008-03-25 16:11:34 -04:00
Joey Hess a2c88e0690 web commit by http://willu.myopenid.com/: Add note about rel="nofollow" as an anti-spam suggestion 2008-03-24 23:23:52 -04:00
Joey Hess c88ae3768e web commit by http://jblevins.org/: htmlscrubber patch to sanitize SVG and MathML 2008-03-24 15:47:13 -04:00
Joey Hess 6f5903b54d web commit by http://mjgoins.myopenid.com/ 2008-03-24 00:19:49 -04:00
Joey Hess 845e7fbd8e web commit by http://mjgoins.myopenid.com/ 2008-03-24 00:18:47 -04:00
Joey Hess afab05a505 web commit by http://jblevins.org/: Thoughts about notation for citations 2008-03-23 22:08:02 -04:00
Joey Hess cb8d1c8642 revert destpage part of f7bdc2385
destpage does not normally need to be worried about when creating other files
as part of the process of rendering a page. Using destpage results in
inlined pages creating two copies of such files. It works to not use destpage
in this case because the inlining page depends on the source page, so if the
source page is modified or deleted the inlining page will be updated.
2008-03-23 20:01:26 -04:00
Joey Hess d2911a20a6 inline: Allow the "feedshow" parameter to take values greater than the value for "show". 2008-03-23 17:39:03 -04:00
Joey Hess 3b49868eb9 Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2008-03-22 13:57:01 -04:00
Joey Hess 20271cf172 add loadindex/saveindex test suite 2008-03-22 13:56:44 -04:00
Joey Hess 5ed5babef4 web commit by http://madduck.net/: add note about whole site rebuilds for little changes 2008-03-22 12:02:39 -04:00
Joey Hess bee7d5d590 web commit by http://jblevins.org/: Notes about access keys from the main discussion page 2008-03-22 10:48:45 -04:00
Joey Hess 24599d2853 web commit by http://madduck.net/: put thoughts into the wishlist item 2008-03-21 19:45:38 -04:00
martin f. krafft 99bd29fc52 scan hook works, remove NotImplemented exception
Signed-off-by: martin f. krafft <madduck@madduck.net>
2008-03-21 19:17:00 -04:00
martin f. krafft 616fcc8aef Do not output xml-rpc debugging
Signed-off-by: martin f. krafft <madduck@madduck.net>
2008-03-21 19:17:00 -04:00
martin f. krafft 259d6e67a1 Flesh out pythondemo
This implements most hooks with stupid demo code, and also still has
some TODO items.

Signed-off-by: martin f. krafft <madduck@madduck.net>
2008-03-21 19:17:00 -04:00
martin f. krafft 460d74fa78 Handle going down with an exception
We previously used None as a sentinel to exit, but None is now a proper
value, so now it's the job of an exception-like object (except it isn't
an exception).

Signed-off-by: martin f. krafft <madduck@madduck.net>
2008-03-21 19:17:00 -04:00
martin f. krafft 9134145d82 put XMLStreamParser in public namespace
Since we might throw sub-class exceptions, the class should be in the
public namespace, meaning its name should not be prefixed with _.

Signed-off-by: martin f. krafft <madduck@madduck.net>
2008-03-21 19:16:59 -04:00
Joey Hess fd2ddd9e87 Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2008-03-21 19:09:41 -04:00
Joey Hess 1c2f59239f typos 2008-03-21 19:09:29 -04:00
Joey Hess e8ff29fa33 web commit by http://jblevins.org/: Ideas about keyboard shortcuts 2008-03-21 18:14:06 -04:00
Joey Hess 060183df67 Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2008-03-21 16:34:17 -04:00
Joey Hess 479f75abf4 defer po and pot file updating until package build time
This allows make to be run without polluting the tree with lots of po file
changes.
2008-03-21 16:32:23 -04:00