Joey Hess
f8a09ba105
tag: Normalize tagbase so leading/trailing slashes in it don't break things.
2008-11-10 19:48:58 -05:00
Jon Dowland
17731892ec
reply
2008-11-10 23:38:45 +00:00
Jon Dowland
81a87988c4
Merge branch 'master' of git://git.ikiwiki.info
2008-11-10 23:35:00 +00:00
Joey Hess
183270a845
response
2008-11-10 18:34:35 -05:00
Jon Dowland
f28069a05c
add discussion on this tip
2008-11-10 23:34:09 +00:00
http://alcopop.org/me/openid/
91315207cf
specifying the user in recentchanges for anon git pushes
2008-11-10 18:30:08 -05:00
Jon Dowland
c1fa07ad4f
update my userpage (and try out git pushes)
2008-11-10 23:24:22 +00:00
Joey Hess
1ea66c3d3f
add a robots.txt
...
Yahoo! has been pounding on ikiwiki.cgi again. While I'd prefer ikiwiki to
generate sites that avoided robots hitting it in other ways, I'm adding a
robots.txt, at least temporarily.
2008-11-10 18:08:09 -05:00
Joey Hess
f0e58faefa
Add rel=nofollow to recentchanges_links for the same (weak) reasons it was earlier added to edit links.
2008-11-10 18:05:30 -05:00
intrigeri
e397888a77
po/doc: more security research results
...
Apart of the fuzzying part, I'm done with what I can do without help.
The "Running po4a on untrusted content" section needs at least a quick glance
from an experimented Perl programmer.
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10 23:52:50 +01:00
Joey Hess
d5853f3e33
reorg to avoid broken link in basewiki
...
ikiwiki/markdown is a basewiki page and shouldn't link to pages in tips.
Instead, make the tips link to it, so backlinks will point back to them.
While I'm at it, move the info about the emacs mode to a tip.
2008-11-10 17:40:03 -05:00
intrigeri
a7d329c173
po(match_lang, match_currentlang): use the lang() function
...
... now that it exists, instead of duplicating it.
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10 21:30:06 +01:00
intrigeri
b4ab0d0b9e
po: rewrote otherlanguagesloop()
...
It is now more elegant IMHO, and the output is now sorted according to the
language name (instead of code).
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10 21:19:21 +01:00
intrigeri
c5513548c9
po: factorize extraction of a slave page's masterpage and lang
...
The very same code was repeated at dozens of places.
NB: the real work is now done is _istranslation(), which is memoized,
so the additional function calls overhead should be compensated.
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10 20:40:44 +01:00
intrigeri
45694a8623
t/po.t: removed debug lines
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10 19:40:54 +01:00
Joey Hess
5c0d43999f
response
2008-11-10 13:30:20 -05:00
Joey Hess
4287a02069
reorganize vim syntax highlighting info
...
There was already a tip about it; move the plasticboy version to there.
2008-11-10 13:19:22 -05:00
intrigeri
864bc2d9d0
po(otherlanguagesloop): start factorizing
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10 18:38:25 +01:00
intrigeri
812f775e0a
Merge commit 'upstream/master' into prv/po
2008-11-10 15:41:29 +01:00
intrigeri
1255acc02c
po: finish abstracting %filtered by putting it into a blackbox
...
i.e. it is invisible for everyone but its accessors/mutators
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10 15:30:49 +01:00
intrigeri
38cdda66d7
po: actually use pofiles() function, to enhance code clarity
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10 15:09:56 +01:00
intrigeri
5575786803
po: abstract "doing something for the same page in every other language"
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10 14:55:21 +01:00
intrigeri
532ec56a5f
po: abstract implementation details for %translations building and resetting
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10 13:56:46 +01:00
intrigeri
3174b4c6f3
po: abstract %filtered implementation details
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10 13:51:00 +01:00
intrigeri
00732f19b9
po: clarify error messages
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10 13:22:50 +01:00
intrigeri
6fc898df75
po: clarify code with some comments
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10 13:14:42 +01:00
intrigeri
aef1b0f503
po: prevent a slave page to depend on itself
...
It has never caused harm yet, but it might in the future.
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10 12:48:27 +01:00
http://a1fie.livejournal.com/
02ee6d40d4
vim syntax file linked
2008-11-10 01:44:19 -05:00
Joey Hess
7f80e52543
Fix the link() pagespec to match links that are internally recorded as absolute.
...
This fixes a problem exposed by the recent change to tags
(a2839de936
). That recorded tag links as
absolute by including a leading slash in the link. The same could also be
done with an absolute wikilink.
In either case, link() would not match such links, unless the leading slash
was included in the link to match. But that's not right, because pagespecs
match absolute by default. So strip the leading slash.
Note that to keep any existing `link(/foo)` pagespecs working after this
change, the leading slash is removed from there, too.
2008-11-09 15:31:57 -05:00
intrigeri
44bb872a97
po/todo(security): many research results
...
... and some questions to Joey (hint: look for your name)
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-08 22:08:50 +01:00
intrigeri
646d7bf6a3
po(refreshpot): define the input charset before read()'ing
...
... to prevent the use of Encode::Guess::guess_encoding() in
Locale::Po4a::Transtractor (just a minor security measure, dependent on po4a
internals, but we have no reason to think Encode::Guess is not safe).
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-08 21:32:04 +01:00
Joey Hess
d552b28430
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
2008-11-08 12:35:28 -05:00
AlexandreDupas
e7d04199ec
fix link to Jason Blevins user page
2008-11-08 11:28:25 -05:00
intrigeri
7691899da0
Merge branch 'prv/po' into pub/po
2008-11-08 17:08:36 +01:00
AlexandreDupas
4991cb441e
question about the format directive and relation with htmlize hooks
2008-11-08 11:04:27 -05:00
intrigeri
41d13673c6
po/todo++: support other file formats than markdown
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-08 12:21:54 +01:00
intrigeri
0c19796a5e
Merge branch 'prv/po' into pub/po
2008-11-08 02:14:26 +01:00
intrigeri
86edd539f4
po/todo: mostly security research
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-08 02:13:37 +01:00
intrigeri
8327b85f1e
Merge branch 'prv/po' into pub/po
2008-11-08 00:09:06 +01:00
intrigeri
3c6c129100
po: started research on gettext/po4a security
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-08 00:08:44 +01:00
intrigeri
438e5ef733
Merge branch 'prv/po' into pub/po
2008-11-08 00:06:02 +01:00
intrigeri
f8fee76f99
fixed link
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-08 00:05:35 +01:00
intrigeri
cdd3d2416b
Merge branch 'prv/po' into pub/po
2008-11-07 22:55:09 +01:00
intrigeri
17bab92c31
added symlink to pagespec/po in basewiki to fix the build
...
else basewiki_brokenlinks.t fails.
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-07 22:53:53 +01:00
intrigeri
f652af11fd
Merge commit 'upstream/master' into pub/po
2008-11-07 22:19:34 +01:00
intrigeri
339478ba47
Merge commit 'upstream/master' into prv/po
2008-11-07 22:19:24 +01:00
intrigeri
a0ac346079
po: finished backlinks implementation
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-07 22:17:54 +01:00
intrigeri
d1e5affbc2
po: oops, removed debug output from testsuit
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-07 21:39:55 +01:00
intrigeri
34ab884242
po: implemented linking/backlinks specification for po_link_to=negotiated
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-07 21:27:00 +01:00
intrigeri
14415a2b67
po: implemented linking specification in testcase
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-07 21:24:00 +01:00