Commit Graph

81 Commits

Author SHA1 Message Date
Alex Schroeder
dc65dd74f4 *** empty log message *** 2003-04-16 23:01:09 +00:00
Alex Schroeder
934fb0ced0 (InitLinkPatterns): Not only \xc0-\xff are non-english
letters:  With UTF-8, \x80-\xff are.
2003-04-16 23:00:26 +00:00
Alex Schroeder
80f54e479f More Interlink tests. 2003-04-16 00:14:49 +00:00
Alex Schroeder
d386c76a73 *** empty log message *** 2003-04-16 00:14:43 +00:00
Alex Schroeder
8e490c19a4 *** empty log message *** 2003-04-16 00:14:09 +00:00
Alex Schroeder
7e50ccae73 (InitLinkPatterns): Changed InterLinkPattern. 2003-04-16 00:05:25 +00:00
Alex Schroeder
e6cf514d7e Added page-level tests. 2003-04-15 23:49:33 +00:00
Alex Schroeder
89bfb528a9 *** empty log message *** 2003-04-15 23:48:40 +00:00
Alex Schroeder
43f3ec61db *** empty log message *** 2003-04-15 23:42:23 +00:00
Alex Schroeder
10abc180d6 (GetPageLinks): No longer call StripUrlPunct.
(StripUrlPunct): Removed.
(SplitUrlPunct): Removed.
(GetUrl): No longer call SplitUrlPunct, no longer return a list.
(PrintLinkList): GetUrl no longer returns a list.
(GetInterLink): No longer call SplitUrlPunct.
(ApplyRules): GetUrl no longer returns a list.
(InitLinkPatterns): Changed $UrlPattern.
(InitRequest): Reset $Debug on every invocation (for mod_perl!).
(InitCookie): Move password into the cookie, too, so that you can
set the password even when you are banned and banned cannot read.
(GetHeader): Add message at the top of the file when $Debug is set.
(DoPassword): Get rid of the default '*' password.
(RSS): Charsets are case-insensitive.
2003-04-15 22:39:16 +00:00
Alex Schroeder
358c6b422f *** empty log message *** 2003-04-15 22:38:32 +00:00
Alex Schroeder
d2338106e3 many more tests for the url regexp 2003-04-15 22:33:47 +00:00
Alex Schroeder
f1b199c21b comment 2003-04-15 00:05:35 +00:00
Alex Schroeder
1d302e7d92 Added test for table markup. 2003-04-15 00:04:01 +00:00
Alex Schroeder
42f62041b8 *** empty log message *** 2003-04-15 00:03:39 +00:00
Alex Schroeder
7c6e3ca1e0 (ApplyRules): Fixed handling of the last cell per row in
tables.
2003-04-15 00:03:17 +00:00
Alex Schroeder
93d54fb673 Changed print output. Numbering the tests is bogus because the order
of the tests is undefined.
2003-04-13 22:30:28 +00:00
Alex Schroeder
5b2ba3de57 (ApplyRules): If something looked like an Interlink but
was not, and the text contained more than one colon, backtracking
got confused.  This bus is fixed.
(GetInterLink): Do not reuse $id, removed bogus if condition that
was always true.
(GetUrl): Do not reuse $url.
2003-04-13 22:18:16 +00:00
Alex Schroeder
33dffcaad1 *** empty log message *** 2003-04-13 22:17:42 +00:00
Alex Schroeder
6108316e5f added more tests, including the one i am really trying to fix: Foo::Bar 2003-04-13 18:52:10 +00:00
Alex Schroeder
a06924b626 added second test 2003-04-13 18:41:56 +00:00
Alex Schroeder
801f558b7b First markup unit test. 2003-04-13 18:35:01 +00:00
Alex Schroeder
837e5acabf new file 2003-04-13 18:34:28 +00:00
Alex Schroeder
6c20d9385f *** empty log message *** 2003-04-12 12:40:43 +00:00
Alex Schroeder
fa2a6b6e80 ($HttpCharset): Default is 'ISO-8859-1' instead of empty.
(ApplyRules): Include and rss pseudo tags don't eat all following whitespace.
(RSS): Error message is on a paragraph of its own.
2003-04-12 12:40:13 +00:00
Alex Schroeder
42f94ce81a (GetRcText): Added space by Pierre Gaston <pgas@intracom.gr>.
(GetCommonFooter): Shortcut when embedded by Pierre Gaston <pgas@intracom.gr>.
2003-04-11 11:03:29 +00:00
Alex Schroeder
1240ff5a42 *** empty log message *** 2003-04-11 11:03:03 +00:00
Alex Schroeder
da38c1b96b *** empty log message *** 2003-04-07 20:56:21 +00:00
Alex Schroeder
e2d4d206b7 *** empty log message *** 2003-04-07 20:38:30 +00:00
Alex Schroeder
903f26d359 *** empty log message *** 2003-04-06 15:22:12 +00:00
Alex Schroeder
32add29cf2 (RSS): Added new div for RSS inclusion.
(GetHtmlHeader): Added div.rss to the default stylesheet.
2003-04-06 15:16:29 +00:00
Alex Schroeder
35fa0aeb90 *** empty log message *** 2003-04-01 19:06:32 +00:00
Alex Schroeder
4d16445cf4 (InitLinkPatterns): The InterLinkPattern may not contain an apostrophe ('). 2003-04-01 19:04:57 +00:00
Alex Schroeder
1b355cfef7 *** empty log message *** 2003-04-01 17:32:26 +00:00
Alex Schroeder
1e3702aff6 (GetInterLink): If no page follows the colon, this is no interlink. 2003-04-01 17:32:04 +00:00
Alex Schroeder
c9b414005c *** empty log message *** 2003-04-01 13:32:18 +00:00
Alex Schroeder
962731c44e (GetReferers): Quote HTML. 2003-04-01 13:31:43 +00:00
Alex Schroeder
67e1b3d0e7 *** empty log message *** 2003-04-01 12:24:51 +00:00
Alex Schroeder
d04fa06268 ($RefererDir, $RefererTracking, $RefererTimeLimit)
($RefererLimit, %Referers): New variables.
(ApplyRules): Use GetRaw instead of IncludeRaw
(GetRaw): Renamed from IncludeRaw and without HTML quoting.
(BrowsePage): Use more methods from the CGI module, call
RefererTrack if appropriate.
(DoRc): Use more methods from the CGI module.
(GetHtmlHeader): Added new div.
(ForceReleaseLock): Do globbing.
(RequestRefererLock): New function, creates locks per-page.
(ReleaseRefererLock): New function.
(DoUnlock): Requires globbing for refer locks.
(GetRefererFile): New.
(ReadReferers): New.
(GetReferers): New.
(UpdateReferers): New.
(RefererTrack): New.
2003-04-01 12:24:03 +00:00
Alex Schroeder
bdad45ba8e *** empty log message *** 2003-03-28 21:07:20 +00:00
Alex Schroeder
daa3fa064d (UrlEncode): New function.
(GetValidatorLink): Use it.
2003-03-28 21:07:01 +00:00
Alex Schroeder
1438d4d291 *** empty log message *** 2003-03-28 20:33:58 +00:00
Alex Schroeder
51371f7931 (InitLinkPatterns): Only set $FS and $FS0 if $FS is not set already.
(ReadFile): Check wether $FS0 is set before doing anything.
(DoMaintain): Ditto.
2003-03-28 20:33:37 +00:00
Alex Schroeder
06f83d2273 (DoMaintain): Important bugfix! 2003-03-28 20:08:30 +00:00
Alex Schroeder
9fa2c5da49 *** empty log message *** 2003-03-28 19:52:08 +00:00
Alex Schroeder
4b5a1d47e2 Tricky update! Changing the field separator from superscript 3 to
an ASCII control character!

(FS0, FS0used): New field separator for the old one, and
a new variable to tell us if the old separator has been used.
(InitLinkPatterns): The old separator, FS0, is set to \xb3 (the
well-known superscript 3), and the new separator, FS, is set to
\x1e, the ASCII control character RS, aka. RECORD SEPARATOR.
(ReadFile): Convert data read from files from FS0 to FS if
necessary when loading.
(DoMaintain): More translating, some HTML changes.  Using the new
field separator will not work for keep files, since new changes
are just appended to the file.  The keep files must be updated,
therefore.  This happens during maintenance, so make sure
maintenance really gets run!  This also updates the recent changes
log files (both old and current).

(GetValidatorLink): Use $q->self_url for the validator link.
2003-03-28 19:50:04 +00:00
Alex Schroeder
f5e47e0ba8 typo in the upload target 2003-03-27 23:39:51 +00:00
Alex Schroeder
e868e01f48 *** empty log message *** 2003-03-27 23:38:22 +00:00
Alex Schroeder
8b60ecc533 retry 2003-03-27 23:37:23 +00:00
Alex Schroeder
cd39446f67 New. 2003-03-27 23:30:03 +00:00