Commit Graph

14364 Commits (32ffffcf2a71b896007253891be5bc6f12e763ea)

Author SHA1 Message Date
http://smcv.pseudorandom.co.uk/ 61218e338a another branch 2010-11-23 23:59:03 +00:00
http://smcv.pseudorandom.co.uk/ 9180381728 tested and seems to work 2010-11-23 23:50:29 +00:00
Simon McVittie 18bb93f574 pinger: avoid pinging our own local path, too 2010-11-23 23:14:38 +00:00
Simon McVittie 2411e2be1f Use local path for even more CGI URLs 2010-11-23 23:12:21 +00:00
Simon McVittie d01334b8e9 If cgiurl is set, but url isn't, use an absolute $local_cgiurl 2010-11-23 22:21:31 +00:00
http://smcv.pseudorandom.co.uk/ 172f41f6de removed 2010-11-23 10:43:40 +00:00
http://smcv.pseudorandom.co.uk/ 9b01c9779e Added a comment: expression anchored too closely? 2010-11-23 10:43:21 +00:00
http://smcv.pseudorandom.co.uk/ efba19b337 Added a comment: expression anchored too closely? 2010-11-23 10:43:09 +00:00
http://kerravonsen.dreamwidth.org/ 78a2e59834 exclusion doesn't exclude 2010-11-23 02:47:38 +00:00
http://kerravonsen.dreamwidth.org/ 47726461a4 Added a comment: Limitations 2010-11-23 02:18:52 +00:00
http://smcv.pseudorandom.co.uk/ 8935a131d0 updated branch, not tested properly yet 2010-11-23 00:37:28 +00:00
Simon McVittie 4625e0c4d9 Pass a CGIURL into commentmoderation.tmpl
Omitting this resulted <form action=""> which is in fact a working
self-referential form, but is less obvious than it ought to be.
2010-11-23 00:20:57 +00:00
Simon McVittie 1f019ac2aa Use local paths for most references to pages 2010-11-23 00:19:10 +00:00
Simon McVittie 296e5cb2fd Use local paths for the CGI URL 2010-11-23 00:12:17 +00:00
Simon McVittie 78c595736e Use local paths when including Javascript 2010-11-23 00:06:07 +00:00
Simon McVittie d2e3741a6f Use local paths for redirection where possible 2010-11-23 00:00:11 +00:00
Simon McVittie 70bdd57899 Add a regression test for urlto, baseurl and cgiurl in relative/local/absolute modes 2010-11-22 23:47:05 +00:00
Simon McVittie 4c224ae143 urlto(): if $from is undef, return a local path, not an absolute URL 2010-11-22 23:47:05 +00:00
Simon McVittie f032bce791 baseurl(): return local path, not absolute URL, if the argument is undef 2010-11-22 23:47:04 +00:00
Simon McVittie 6be4e6d1a5 cgiurl(): return a locally-valid path by default
To get an absolute version you can use cgiurl(cgiurl => $config{cgiurl}).
The only place in IkiWiki that seems to actually need an absolute URL
is the openid plugin, and that already uses the named parameter.
2010-11-22 23:47:04 +00:00
Simon McVittie 200c599dca cgiurl: don't append "?" if there are no parameters
This means we can use cgiurl() instead of $config{cgiurl} if an absolute
URL isn't desired.
2010-11-22 23:16:59 +00:00
Simon McVittie 8f64c69e08 Compute local paths to the top of the wiki
"local" here is short for "locally valid" - the idea is that we can use
URLs that are relative in the sense of only having the path part, but
absolute in the sense that they start from '/', such as
'/~smcv/ikiwiki.cgi'. There's no particularly good name that I can find
for these between-relative-and-absolute URLs.

They're useful because in the common case where the pages and the CGI
script have the same scheme and authority component, each page is
identified by the same locally-valid URL when linking from any page or
from the CGI, without hard-coding a choice between HTTP and HTTPS, or
between multiple virtual hostnames with the same path layout. As such,
we can use them in many situations that previously used an absolute URL.

If there's no suitable semi-absolute value for local_url (for instance,
if your pages and your CGI reside on different servers), we can just fall
back to using the absolute URL. I append '/' because $config{url} doesn't
end with '/', but the common case for local_url (on all branchable.com
sites, for instance) is that it's just '/'.
2010-11-22 23:13:52 +00:00
http://churchkey.org/author/ian/ 1968317cac added edittemplate bug for ikiwiki verison: 3.20100815.2 2010-11-22 21:26:27 +00:00
Joey Hess 5954915a4f response 2010-11-22 16:04:11 -04:00
http://smcv.pseudorandom.co.uk/ d916cd2f71 respond to feedback 2010-11-22 19:45:02 +00:00
Joey Hess 178d6a16c2 comments (finally) 2010-11-22 14:06:41 -04:00
http://slowdog.myopenid.com/ a6c3d71787 2010-11-21 19:38:10 +00:00
http://pmate.myopenid.com/ f80469c34d 2010-11-20 21:44:12 +00:00
Joey Hess 1739dbe0a8 úpdate 2010-11-20 14:57:46 -04:00
Joey Hess 9f8cfe998e response 2010-11-20 14:57:10 -04:00
Joey Hess a2c040f1fc Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2010-11-20 14:54:51 -04:00
Joey Hess 31f0e459b8 edittemplate: Fix crash if using a .tmpl file or other non-page file as a template for a new page. 2010-11-20 14:54:43 -04:00
http://pmate.myopenid.com/ c1f3129583 2010-11-20 17:57:56 +00:00
http://pmate.myopenid.com/ af0bfcc078 2010-11-20 17:56:35 +00:00
Joey Hess af5f162ca7 highlight: Support new format of filetypes.conf used by version 3.2 of the highlight package. 2010-11-20 12:55:26 -04:00
Joey Hess f8f8770a65 smcv/ready/glob-cache merged 2010-11-20 12:28:22 -04:00
Joey Hess b3bca318ef avoid an unnecessary hash lookup 2010-11-20 12:25:52 -04:00
Joey Hess cfbfbdc597 Merge remote branch 'smcv/ready/glob-cache' 2010-11-20 12:24:00 -04:00
http://smcv.pseudorandom.co.uk/ c9b737cc85 one more patch: but expanding the memoization is actually a slowdown for the docwiki 2010-11-20 00:36:29 +00:00
Simon McVittie d6ff694ff7 branch ready for merge, I think 2010-11-20 00:22:56 +00:00
Simon McVittie 55515050e1 make use of precompiled regex objects 2010-11-20 00:02:49 +00:00
Simon McVittie 788105e2a7 glob2re: return a precompiled, anchored case-insensitive regex
In practice every use of glob2re uses it like that.
2010-11-19 23:59:04 +00:00
Simon McVittie 321bf7ec19 match_glob: streamline glob cache slightly 2010-11-19 23:46:46 +00:00
Kathryn Andersen ff0e244701 Improve the speed of match_glob 2010-11-19 23:46:46 +00:00
Joey Hess a4cb86d733 response 2010-11-17 13:20:29 -04:00
Jon Dowland c02f9d224c sorry, I'll try against master in future. 2010-11-17 10:13:32 +00:00
http://pmate.myopenid.com/ 03f04d48d5 2010-11-17 08:03:09 +00:00
http://jmtd.livejournal.com/ dd97963758 ext4, default settings... 2010-11-17 07:47:07 +00:00
Joey Hess b00c6c9640 inline: Improve RSS url munging to use a proper html parser
and support all elements that HTML::Tagset knows about.

(Which doesn't include html5 just yet, but then the old version didn't either.)

Bonus: 4 times faster than old regexp method.
2010-11-16 16:57:50 -04:00
Joey Hess fcf0ee574a add test case for RSS url munging 2010-11-16 16:48:42 -04:00