Commit Graph

1537 Commits

Author SHA1 Message Date
Alex Schroeder
a59910983a duplicate use utf8 removed 2012-07-04 16:43:12 +02:00
Alex Schroeder
bf28666215 use utf8; 2012-07-04 15:26:08 +02:00
Alex Schroeder
bbdda6787a Pod fix.
Changed =head to =head2 as suggested by anonymous visitor to the wiki.
2012-06-22 18:23:51 +02:00
Alex Schroeder
70fcfa1356 Fix UTF-8 decoding issue when using toc.pl
The output of ApplyRules is no explicitly decoded as UTF8.
2012-06-22 02:54:29 +02:00
Alex Schroeder
733dd11861 Added copyright year. 2012-06-14 10:21:40 +02:00
Alex Schroeder
db71c69908 Merge branch 'add-thumbs' 2012-06-14 10:19:33 +02:00
Alex Schroeder
648ff8d785 Handle the new file format for uploaded files
Recently, uploaded files don't just contain #FILE and a MIME type --
the MIME type is followed by a space and optionally more information.
I replaced the hand-coded parsing with a call to TextIsFile and added
better error checking and fixed the error messages (they used $s
instead of %s).
2012-06-14 10:04:54 +02:00
Alex Schroeder
492e9c3a37 From the wiki
Taken the version from the wiki and added the standard
$ModulesDescription.
2012-06-14 08:39:25 +02:00
Alex Schroeder
c0112919b4 Encoding the cookie and fixing drafts.pl
Drafts are saved using the username as filename. This must also be
encoded and decoded correctly. Because of NFC and NFD issues on Mac
HFS, an appropriate normalization was added to mac.pl.

As the username is also part of the cookie, this showed that the
Cookie content wasn't being encoded correctly, so that was fixed, too.
2012-05-25 11:56:46 +02:00
Alex Schroeder
8933a2cf74 Resolved conflict. 2012-05-25 08:29:34 +02:00
Alex Schroeder
e533bc3915 Fix an encoding error in namespaces.pl on Debian
The Debian installation uses ext3 and therefore raw bytes for
filenames unlike the HFS filesystem of Mac OSX.

Copyright years were updated. The maintenance output of for drafts was
cleaned up.
2012-05-25 01:00:10 +02:00
Alex Schroeder
a35c0a89c8 Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse
Conflicts:
	modules/mac.pl
	t/encoding.t
	wiki.pl
2012-05-24 18:31:44 +02:00
Alex Schroeder
1495a29fd3 More UTF-8 fixes
All the source files containing non-ASCII characters needed to have
utf8 added. This will be necessary for user config files as well! The
regular expressions identifying page names had to be changed.
UrlEncode translates the string back to bytes before encoding it.
Cached RSS files are saved with UTF-8 encoding and therefore need
their meta-data changed (using the XML::RSS module to do this
correctly didn't work for some of the test files). The CGI object's
parameters, keywords and info_path are decoded correctly. File access
uses the UTF-8 layer (reading, writing, appending, access to the log
of recent changes, running sub processes with grep and diff).

The mac compatibility extension will also disable the use of grep if
non-ASCII characters are searched for because of an unexplained
problem with grep.
2012-05-24 18:08:42 +02:00
Alex Schroeder
d4eb5bc21c More UTF-8 fixes
All the source files containing non-ASCII characters needed to have
utf8 added. This will be necessary for user config files as well! The
regular expressions identifying page names had to be changed.
UrlEncode translates the string back to bytes before encoding it.
Cached RSS files are saved with UTF-8 encoding and therefore need
their meta-data changed (using the XML::RSS module to do this
correctly didn't work for some of the test files). The CGI object's
parameters, keywords and info_path are decoded correctly. File access
uses the UTF-8 layer (reading, writing, appending, access to the log
of recent changes, running sub processes with grep and diff).

The mac compatibility extension will also disable the use of grep,
because I could not get it to work (and I don't think there will be
large Oddmuse installations running on Apple's HFS).
2012-05-24 16:58:10 +02:00
Alex Schroeder
2d6b2d6a71 Remove $HttpCharset and moved everything to UTF-8
This also required some changes to the tests where explicit UTF-8
encoding had been used in the past.
2012-05-22 11:50:23 +02:00
Alex Schroeder
c9e39a4c19 getting rid of $Id$ tags in $WikiDescription
Replaced the $Id$ tags in $WikiDescription for all the modules and wiki.pl itself with a link to the source and an appropriate wiki page, if possible. This is shown in action=version and should help users figure out what another wiki has installed.
2012-04-19 02:18:45 +02:00
Alex Schroeder
69df2b05f1 (NewNamespaceBrowsePage): Allow redirection to namespaces.
(NamespacesNewGetId): Allow for the provision of the ns parameter.
2012-03-20 16:41:22 +00:00
Alex Schroeder
c9f8d09c33 Concise notation. 2012-03-18 01:03:56 +00:00
Alex Schroeder
745094f00e (NamespacesNewGetId): Fix the special case
http://example.org/cgi-bin/wiki.pl/Test?rollback-1234=foo where
Test refers to the namespace and not to the page id.
2012-03-17 19:35:19 +00:00
Alex Schroeder
b9db78830d * gravatar.pl (AddGravatar): UnquoteHtml the comment
before adding the gravatar to it.
2012-02-10 10:49:04 +00:00
Alex Schroeder
ce80a2f144 Fix quoting issues. 2012-01-31 11:10:40 +00:00
Alex Schroeder
b4f61feb20 (GetFooterLinksLogout): Add extra space as
suggested by wiki user Cayenne.
2012-01-17 18:23:07 +00:00
Alex Schroeder
26090be86f (HoneyPotInspection): Allow override using
$QuestionaskerSecretKey.
2012-01-02 22:47:01 +00:00
Alex Schroeder
bafdfad1e0 And another attempt at an offline app. 2011-12-31 03:04:35 +00:00
Alex Schroeder
b0e839d4f4 (CategoriesNewOpenPage): Instead of setting $Page{text}, set
$NewText because that's what BrowsePage uses. Handle $NewPage in
the case of mod_apache or similar environment.
2011-12-31 01:40:26 +00:00
Alex Schroeder
7107e34dcc (CategoryParse): New. Change parsing
slightly to match the description on the wiki.
(CategoryInit, GotoBarInit): Use it.
2011-12-31 00:27:33 +00:00
Alex Schroeder
374b85a8a9 Moved CSS installation to separate module. 2011-12-05 23:59:30 +00:00
Alex Schroeder
46afb63096 * honeypot.pl: Add pod.
($HoneyPotOk $HoneyPotIdiot, $HoneyPotTimestamp): New.
(HoneyPotNewGetFormStart, HoneyPotInspection): Use them.
2011-11-26 11:30:42 +00:00
Alex Schroeder
6b4f148260 (PrintAllPages): Deleted. (Was it ever required?) 2011-11-20 23:39:17 +00:00
Alex Schroeder
1ae6fcf08b Renamed $GitDir to $GitRepo. 2011-11-20 22:52:18 +00:00
Alex Schroeder
1a83d4e792 (DoPrintAllPages): PrintAllPages needs an extra parameter. 2011-11-19 15:26:44 +00:00
Alex Schroeder
6590c976f8 *** empty log message *** 2011-11-05 13:19:06 +00:00
Alex Schroeder
e7814a0f38 * git.pl (GitCleanup): Get rid of git add --all and use
git commit -a instead.
2011-11-04 22:59:03 +00:00
Alex Schroeder
ac9a76b5be *** empty log message *** 2011-11-04 22:42:26 +00:00
Alex Schroeder
a476f8ec29 (GitNewSave, GitNewDeletePage, GitCleanup): Use $GitMail. 2011-10-23 19:16:38 +00:00
Alex Schroeder
5c26f18d5c (NewTagDeletePage): Return OldTagDeletePage(). 2011-10-23 18:53:40 +00:00
Alex Schroeder
7f2279aa71 ($GitMail): New option.
(GitInitRepository): Use it.
2011-10-23 18:11:29 +00:00
Alex Schroeder
5f095c723a New 2011-10-22 23:17:12 +00:00
Alex Schroeder
4c8a82f992 Ignore Preview 2011-10-16 10:16:05 +00:00
Alex Schroeder
a02d376129 (StaticFileName, StaticWriteFile): Handle
encoded files, eg. gzip.
2011-10-13 23:46:21 +00:00
Alex Schroeder
f8dc8357f1 (HoneyPotInspection): Except editors. 2011-10-12 18:52:24 +00:00
Alex Schroeder
58fc86ad0b (HoneyPotInspection): New. 2011-10-12 18:14:54 +00:00
Alex Schroeder
6c3a945c08 Also provide a goodie parameter. 2011-10-12 16:17:14 +00:00
Alex Schroeder
a9327b54a4 New 2011-10-12 11:39:50 +00:00
Alex Schroeder
5479f5304b (MonitorSend): Change from User to From
address.
2011-10-12 11:38:20 +00:00
Alex Schroeder
f88872b2e6 Sample settings 2011-10-12 09:20:16 +00:00
Alex Schroeder
de98c864ce Fixes 2011-10-11 23:10:55 +00:00
Alex Schroeder
7cb682aa0c Debugging 2011-10-11 22:17:26 +00:00
Alex Schroeder
b8ba1781cb First revision. 2011-10-11 21:49:07 +00:00
Alex Schroeder
6fe658c4ad Formatting 2011-07-06 19:18:01 +00:00