Commit Graph

4672 Commits

Author SHA1 Message Date
Alex Schroeder
2b2e45b952 Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse 2012-06-14 10:20:17 +02:00
Alex Schroeder
dfc3555184 Merge branch 'add-thumbs' 2012-06-14 10:19:33 +02:00
Alex Schroeder
474798c5cd 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
0a54f14a6f From the wiki
Taken the version from the wiki and added the standard
$ModulesDescription.
2012-06-14 08:39:25 +02:00
Alex Schroeder
04cdf0be24 Fixed cookie decoding
If the username contained a non-ASCII character, eg. Schröder, then
the script would keep printing the cookie message, telling the user
that the cookie had changed when in fact it had not.
2012-05-25 17:41:01 +02:00
Alex Schroeder
e531f9d569 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
4f6407fd38 Resolved conflict. 2012-05-25 08:29:34 +02:00
Alex Schroeder
3174e184f9 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
8d94a0a50f 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
67650e3dc8 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
700d412a01 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
cd2b4d624e 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
fdde88c98f Provide a default class for the RecentChanges form
The XHTML is invalid because the tag ends with ... class> -- this is
caused by an assignment without value. Fix: Provide a class attribute
to the form in RcHtml. Provide a default class attribute to the form
in GetFormStart.
2.0.1
2012-05-21 17:32:36 +02:00
Alex Schroeder
f6c18b2ccd no borders for a img 2012-05-21 11:43:53 +02:00
Alex Schroeder
a7d9995db9 Google +1 link without border 2012-05-20 01:43:48 +02:00
Alex Schroeder
8d39c095ff Google +1 button uses id, not class 2012-05-18 10:32:05 +02:00
Alex Schroeder
cdecbef49a Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse 2012-05-18 10:29:25 +02:00
Alex Schroeder
8fa4eed63d Google +1 button style 2012-05-18 10:27:28 +02:00
Alex Schroeder
41ef3cb386 added imap2wiki script 2012-05-17 02:25:19 +02:00
Alex Schroeder
c11a196f8f Ignore #bla# files created by Emacs and test-data directory 2012-04-27 01:10:27 +02:00
Alex Schroeder
de4ef6451f Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse 2012-04-27 01:09:54 +02:00
Alex Schroeder
8ed24a11f8 Remove unused local variables
in GetPageFile, InitLinkPatterns
2012-04-27 00:45:23 +02:00
Alex Schroeder
f73c8f66ce beige.css with changes from campaignwiki.org
Mostly the introduction of more classes such as
.aside and other classes to be used in divs.

I also added a .gitignore file for the Emacs backup
files and the current.pl that is created by the
Makefile.
2012-04-25 04:19:46 -04:00
Alex Schroeder
348f4bcf3b rule to create current.pl from wiki.pl
The file current.pl is the same as wiki.pl but it's
$WikiDescription now contains the git description --tags
output and links to the appropriate entry in
http://git.savannah.gnu.org/cgit/oddmuse.git/refs/
2012-04-24 00:49:27 +02:00
Alex Schroeder
da46d3e7e7 Remove extra hr when displaying diff 2.0 2012-04-20 14:58:44 +02:00
Alex Schroeder
f11e2a8731 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
79d836e8f4 new 2012-03-30 07:13:16 +00:00
Alex Schroeder
33269ebd30 Revert back to 1.2 because I need these rules for my Homepage. 2012-03-30 07:08:18 +00:00
Alex Schroeder
b99f8279c2 No more special treatment for search box. 2012-03-29 23:07:06 +00:00
Alex Schroeder
09ad496b7c TOC 2012-03-28 18:08:59 +00:00
Alex Schroeder
3be61b7e36 Top theme 2012-03-28 17:50:43 +00:00
Alex Schroeder
b5e7c09ab9 Comment pages, no wrapping of titles 2012-03-24 12:25:09 +00:00
Alex Schroeder
b7094eff56 Fix category box using :last-child and header positioning. 2012-03-24 11:43:07 +00:00
Alex Schroeder
95f9337657 Fixes. 2012-03-23 18:46:57 +00:00
Alex Schroeder
d3308a2996 *** empty log message *** 2012-03-23 17:55:03 +00:00
Alex Schroeder
b39beae08a New CSS for Emacs Wiki. Good starting point for people that like Wikipedia. 2012-03-23 17:54:22 +00:00
Alex Schroeder
bb465183c6 *** empty log message *** 2012-03-20 16:41:37 +00:00
Alex Schroeder
8e9b5f72b5 (NewNamespaceBrowsePage): Allow redirection to namespaces.
(NamespacesNewGetId): Allow for the provision of the ns parameter.
2012-03-20 16:41:22 +00:00
Alex Schroeder
63410250fb Concise notation. 2012-03-18 01:03:56 +00:00
Alex Schroeder
d3f24ff266 *** empty log message *** 2012-03-17 19:35:29 +00:00
Alex Schroeder
a973495be4 (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
90a912e391 Add new tests for the fixed rollback in namespaces behaviour. 2012-03-17 19:33:21 +00:00
Alex Schroeder
2bbdc6ca62 Public domain notice. 2012-03-10 16:38:12 +00:00
Alex Schroeder
7314b43600 New 2012-03-10 16:37:46 +00:00
Alex Schroeder
2dd86236ca *** empty log message *** 2012-03-08 15:28:27 +00:00
Alex Schroeder
7def182276 (PrintAllPages): Skip redirected pages. 2012-03-08 15:28:18 +00:00
Alex Schroeder
796b089266 added body.sans 2012-03-08 12:06:13 +00:00
Alex Schroeder
6094699d1d *** empty log message *** 2012-03-07 18:14:15 +00:00
Alex Schroeder
38fdd1ba4d *** empty log message *** 2012-03-06 10:46:44 +00:00
Alex Schroeder
3f65f2f0ed (ApplyRules): Fix regexp bug reported by Mark Zimmermann
and Ingo Belka.
2012-03-06 10:46:33 +00:00