4 Commits

Author SHA1 Message Date
Markus Lude
fd7e6df0b5 some preparations for 1.2.3: bump version 2025-08-16 18:25:06 +02:00
Markus Lude
b61e62aafe fix warnings:
wiki.pl?action=links&exists=1

wiki.pl: Use of uninitialized value $pgExists{"UseMod"} in numeric ne (!=) at /var/www/cgi-bin/wiki.pl line 4065.
2024-03-11 14:20:52 +01:00
Markus Lude
bdb6f9ec37 fix warnings:
wiki.pl?action=links&exists=0

wiki.pl: Use of uninitialized value $pgExists{"UseMod"} in numeric eq (==) at /var/www/cgi-bin/wiki.pl line 4062.
2024-03-11 14:17:35 +01:00
Markus Lude
1afaf63ec6 fix warnings:
diff on new page without content

wiki.pl: Use of uninitialized value $diffText in string eq at /var/www/cgi-bin/wiki.pl line 2341.
wiki.pl: Use of uninitialized value $diffText in string eq at /var/www/cgi-bin/wiki.pl line 2342.
wiki.pl: Use of uninitialized value $diffText in string eq at /var/www/cgi-bin/wiki.pl line 2341.
wiki.pl: Use of uninitialized value $diffText in string eq at /var/www/cgi-bin/wiki.pl line 2342.
wiki.pl: Use of uninitialized value $diffText in string eq at /var/www/cgi-bin/wiki.pl line 2286.
wiki.pl: Use of uninitialized value in string eq at /var/www/cgi-bin/wiki.pl line 2286.
wiki.pl: Use of uninitialized value $diffText in string eq at /var/www/cgi-bin/wiki.pl line 2341.
wiki.pl: Use of uninitialized value $diffText in string eq at /var/www/cgi-bin/wiki.pl line 2342.
wiki.pl: Use of uninitialized value $diffText in string eq at /var/www/cgi-bin/wiki.pl line 2287.
wiki.pl: Use of uninitialized value in string eq at /var/www/cgi-bin/wiki.pl line 2287.
2024-03-11 14:16:51 +01:00
3 changed files with 15 additions and 11 deletions

View File

@@ -1,4 +1,7 @@
Changes for bugfix release 1.2.3 (August 16, 2025):
* fix warnings
Changes for release 1.2.2 (November 10, 2023):
* fix HTML markup, no XHTML
* domain has changed to usemod.org

4
config
View File

@@ -1,5 +1,5 @@
# == Configuration =====================================================
# Original version from UseModWiki 1.2.2
# Original version from UseModWiki 1.2.3
$CookieName = "Wiki"; # Name for this wiki (for multi-wiki sites)
$SiteName = "Wiki"; # Name of site (used for titles)
@@ -43,7 +43,7 @@ $StartUID = 1001; # Starting number for user IDs
$UploadDir = ''; # Full path (like /foo/www/uploads) for files
$UploadUrl = ''; # Full URL (like http://foo.com/uploads)
@ImageSites = qw(); # Url prefixes of good image sites: ()=all
$Salt = 'pepper'; # Salt for generating an EditHash,
$Salt = 'pepper123'; # Salt for generating an EditHash,
# please choose something other here!
# Major options:

19
wiki.pl
View File

@@ -1,8 +1,8 @@
#!/usr/bin/perl -wT
# UseModWiki version 1.2.2 (November 10, 2023)
# UseModWiki version 1.2.3 (August 16, 2025)
# Copyright (C) 2000-2003 Clifford A. Adams <caadams@usemod.com>
# Copyright (C) 2002-2003 Sunir Shah <sunir@sunir.org>
# with some changes from Markus Lude <markus.lude@gmx.de>
# with some changes from Markus Lude <markus@usemod.org>
#
# Based on the GPLed AtisWiki 0.3 (C) 1998 Markus Denker
# <marcus@ira.uka.de>
@@ -2335,11 +2335,12 @@ sub GetDiffHTML {
sub GetCacheDiff {
my ($type) = @_;
my ($diffText);
my $diffType;
my $diffText = "";
$diffText = &GetPageCache("diff_default_$type");
$diffText = &GetCacheDiff('minor') if ($diffText eq "1");
$diffText = &GetCacheDiff('major') if ($diffText eq "2");
$diffType = &GetPageCache("diff_default_$type") || "";
$diffText = &GetCacheDiff('minor') if ($diffType eq "1");
$diffText = &GetCacheDiff('major') if ($diffType eq "2");
return $diffText;
}
@@ -4058,10 +4059,10 @@ sub GetFullLinkList {
if (($unique > 0) && ($seen{$link} != 1)) {
next;
}
if (($exists == 0) && ($pgExists{$link} == 1)) {
if (($exists == 0) && ($pgExists{$link})) {
next;
}
if (($exists == 1) && ($pgExists{$link} != 1)) {
if (($exists == 1) && (not $pgExists{$link})) {
next;
}
if (($search ne "") && !($link =~ /$search/)) {
@@ -5122,7 +5123,7 @@ sub RenamePage {
sub DoShowVersion {
print &GetHeader('', T('Displaying Wiki Version'), '');
print "<p>UseModWiki version 1.2.2</p>\n";
print "<p>UseModWiki version 1.2.3</p>\n";
print &GetCommonFooter();
}