Commit Graph

2136 Commits

Author SHA1 Message Date
Alex Schroeder
9ef84922d4 Markdown rule: fix rules for __ and _ 2017-05-22 17:59:34 +02:00
Alex Schroeder
0872647101 webdav: new tests using cadaver, when installed 2017-05-22 12:23:15 +02:00
Alex Schroeder
7a0dc0a18e Qualify OddMuse::Modified in a different package 2017-05-22 12:23:15 +02:00
Alex Schroeder
340478ffd8 For PUT and POST, CGI will read STDIN
You can get the content via the parameters POSTDATA and PUTDATA. For
other methods, however, this doesn't work and you still need to read
STDIN. One such method is PROPFIND.
2017-05-22 12:23:15 +02:00
Alex Schroeder
6a78308720 git.pl: failing to delete a file is not an error 2017-05-22 12:23:15 +02:00
Alex Schroeder
39516fa2fd markdown-rule.pl: improving the regexps 2017-05-22 12:23:15 +02:00
Alex Schroeder
ed1bf8ac32 Tiny indentation changes 2017-04-21 02:03:15 +03:00
Alex Schroeder
7fdc318ff0 refactored into single outer if-branch (#7)
* refactored into one outer if branch, simplified output of div classes

(squashed to avoid the weird GPL version change)
2017-04-21 01:57:49 +03:00
Alex Schroeder
6c64b3a3b2 added support for <titlelist regexp> to search page titles only 2017-04-20 13:19:59 +02:00
Alex Schroeder
d0e6f8c724 Variable %RuleOrder is not needed of course
Oops.
2017-04-15 03:56:48 +03:00
Alex Schroeder
a8cd060bf9 New module: styled-pages.pl
A user on #oddmuse asked what would be the easiest way to have
different css styles on different pages. Turns out the easiest way is
to write a module.

Not sure if it will break html in some yet unknown edge cases, but for
most things this should work just fine.

greenfive++
2017-04-15 03:54:06 +03:00
Alex Schroeder
dfc1625f0a ban-contributors: end with package OddMuse 2017-02-28 12:47:50 +01:00
Alex Schroeder
f6f57b686e gotobar.pl: remove trailing whitespace 2017-01-09 22:37:08 +01:00
Alex Schroeder
dee1f9f9ea gotobar.pl: Parameters for automatically set of HOME link and RC link or not 2016-12-02 14:34:44 +01:00
Alex Schroeder
b89cf60f97 Translations: updated
Two new strings which need to be translated.
2016-09-11 21:46:49 +02:00
Alex Schroeder
30e5828b40 calendar.pl: allow previous and next month
Stefan Kamphausen provided a reason for liking the deprecated cal3
extension: he likes cal3 because it also displays the next and
previous month as opposed to calendar.pl which only displays the
current month.

This commit allows users to get the same behaviour by setting
$CalendarOnEveryPage to values greater than 1: 1 shows the current
month on every page, but 2 shows the previous and the current month on
every page, and 3 shows the previous, the current and the next month
on every page.
2016-08-31 13:44:07 +02:00
Alex Schroeder
07947e3d48 Merge branch 'master' of github.com:kensanata/oddmuse 2016-08-26 13:50:13 +02:00
Alex Schroeder
24377a8cb9 Changed nearly remaining code from GPLv2 to GPLv3
There were some files that did not offer "or (at your option) any later
version" in their license and these had to be left alone. This should
solve the incorrect FSF address issue #4 on GitHub.
2016-08-16 18:01:26 +02:00
Alex Schroeder
d2db3d849e Fixed erroneous edits from previous commit
The keyboard macro did not deal kindly with two files... This should
address comments by @m4z for the incorrect FSF address issue #4 on
GitHub.
2016-08-16 16:43:21 +02:00
Alex Schroeder
12fe760cd0 Changed nearly all modules from GPLv2 to GPLv3
There were some modules that did not offer "or (at your option) any
later version" in their license and these had to be left alone.
This should solve the incorrect FSF address issue #4 on GitHub.
2016-08-16 15:04:47 +02:00
Alex Schroeder
51950f7fbf namespaces.pl: more changes to get it working
Encoding of namespace and page name under Mojolicious is not OK and I
don't know why. I added some tests that try to at least prove that the
workaround in the config file is OK.
2016-08-11 17:14:14 +02:00
Alex Schroeder
c0b92664d6 Revert "NamespacesInitVariables not decoding path_info"
This reverts commit 5fce7f4b63.

Same as the previous revert for wiki.pl.
2016-08-11 14:20:45 +02:00
Alex Schroeder
384ba6396e banned-regexps.pl: exclude urls 2016-08-08 11:31:06 +02:00
Alex Schroeder
c761a85d31 upload.pl: fix meta.t complaint 2016-08-08 11:30:27 +02:00
Alex Schroeder
6de51bee7f ban-contributors.pl: rely on inetnum 2016-08-05 12:24:36 +02:00
Alex Schroeder
45246af50c translations: updated with new strings 2016-08-02 11:55:39 +02:00
Alex Schroeder
ab3db4e36e german-utf8.pl: updated 2016-08-02 11:54:15 +02:00
Alex Schroeder
3b3c975a69 sort.pl: delete trailing whitespace 2016-08-02 11:49:41 +02:00
Alex Schroeder
6742ac38e2 sort.pl: be more explicit about the sorting
Clearly print how the result is sorted right now.
2016-08-02 11:48:17 +02:00
Alex Schroeder
48cf9f941a sort.pl: Offer link to sort alphabetically
Don't show the link to the current sort order.
2016-08-02 11:43:08 +02:00
Alex Schroeder
d01b5e1460 Skip pages that no longer exist 2016-08-02 11:38:44 +02:00
Alex Schroeder
f2c00d02a6 creationdate.pl: fix typo 2016-08-02 11:26:02 +02:00
Alex Schroeder
d87302f74f creationdate.pl: now with admin menu to add dates
This is done by parsing rc.log files and adding the information to the
page database.
2016-08-02 11:21:38 +02:00
Alex Schroeder
fe217ea2d5 sort.pl: new module to sort search results 2016-08-02 10:58:37 +02:00
Alex Schroeder
a22117dd12 ban-contributors: switch to Net::Whois::Parser
This one is available in a Debian package.
2016-07-27 12:51:47 +02:00
Alex Schroeder
ad7e83b8fb ban-contributors: fixed failing meta.t tests 2016-07-26 09:37:20 +02:00
Alex Schroeder
2c6f0f0c59 ban-contributors: better regexp
Now able to handle the range 77.56.180.0 - 77.57.70.255.
2016-07-26 09:25:58 +02:00
Alex Schroeder
524dda2e64 Document the number range being banned 2016-07-26 09:10:22 +02:00
Alex Schroeder
80f7c0eea8 ban-contributors.pl now with Net::Whois::IP
We use a whois query to suggest a regular expression that bans the
entire network, not just a single IP.
2016-07-25 15:37:34 +02:00
Alex Schroeder
7ad11d3520 NamespacesInitVariables not decoding path_info
On a new server with Debian Jessie (8), Apache 2.4, Perl 5.25.1 and CGI
4.28 I'm getting double-decoded namespaces. An Umlaut will thus turn
into an undisplayable character (a questionmark in a black diamond).
Decoding of path_info was necessary on my old server with Debian
Wheezy (7), Apache 2.2, Perl 5.14.2 and CGI 3.52.

If you're still in the unfortunate situation, you can copy the old
implementation of NamespacesInitVariables into your config file.
2016-07-25 09:03:33 +02:00
Alex Schroeder
ef7c5a2f10 translation-links.pl: prevent spam from saving
When using banned-regexps.pl, we want to ban certain pages from getting
created. This only works if we test source and target page for spam.
2016-07-09 00:03:18 +02:00
Alex Schroeder
7c9a1c60d4 Get rid of -r 2016-06-27 12:05:37 +02:00
Alex Schroeder
fd18de2b9e Fix issues discovered by meta.t 2016-06-23 00:34:56 +02:00
Alex Schroeder
2588e5e835 toc.pl: use ToString and don't double-decode
ToString now takes more arguments.
2016-06-22 16:24:07 +02:00
Alex Schroeder
678baec68b Moving modules from utf8::encode to encode_utf8 2016-06-22 15:37:04 +02:00
Alex Schroeder
47de199dd5 Moving from utf8::encode to encode_utf8 2016-06-22 14:43:28 +02:00
Alex Schroeder
7ca2d5eb3b Changing $foo/$bar to "$foo/$bar"
Why did this not cause a syntax error?
2016-06-19 15:56:34 +02:00
Alex Schroeder
cd14410ed2 latex.pl: Globbing nil requires double quotes to work 2016-06-19 15:55:46 +02:00
Alex Schroeder
e7b7aec76f opendir also requires bytes 2016-06-19 15:55:03 +02:00
Alex Schroeder
94b8a1c4d8 All open and tie calls need utf8::encode 2016-06-19 13:51:11 +02:00