Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
3b0560db
Commit
3b0560db
authored
Sep 23, 2006
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 351243: Public webdot server changed its IP address
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=colin, a=justdave
parent
4c0d90b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
Constants.pm
Bugzilla/Constants.pm
+1
-1
Filesystem.pm
Bugzilla/Install/Filesystem.pm
+17
-1
No files found.
Bugzilla/Constants.pm
View file @
3b0560db
...
...
@@ -380,7 +380,7 @@ sub bz_locations {
# change showdependencygraph.cgi to set image_url to the correct
# location.
# The script should really generate these graphs directly...
'webdotdir'
=>
"$
libpath/$
datadir/webdot"
,
'webdotdir'
=>
"$datadir/webdot"
,
'extensionsdir'
=>
"$libpath/extensions"
,
};
}
...
...
Bugzilla/Install/Filesystem.pm
View file @
3b0560db
...
...
@@ -257,7 +257,7 @@ EOT
# if research.att.com ever changes their IP, or if you use a different
# webdot server, you'll need to edit this
<FilesMatch \\.dot\$>
Allow from 192.20.225.
10
Allow from 192.20.225.
0/24
Deny from all
</FilesMatch>
...
...
@@ -385,6 +385,22 @@ sub create_htaccess {
print
$htaccess
$old_data
;
$htaccess
->
close
;
}
my
$webdot_dir
=
bz_locations
()
->
{
'webdotdir'
};
# The public webdot IP address changed.
my
$webdot
=
new
IO::
File
(
"$webdot_dir/.htaccess"
,
'r'
)
||
die
"$webdot_dir/.htaccess: $!"
;
my
$webdot_data
;
{
local
$/
;
$webdot_data
=
<
$webdot
>
;
}
$webdot
->
close
;
if
(
$webdot_data
=~
/192\.20\.225\.10/
)
{
print
"Repairing $webdot_dir/.htaccess...\n"
;
$webdot_data
=~
s/192\.20\.225\.10/192.20.225.0\/24/g
;
$webdot
=
new
IO::
File
(
"$webdot_dir/.htaccess"
,
'w'
)
||
die
$!
;
print
$webdot
$webdot_data
;
$webdot
->
close
;
}
}
# A helper for the above functions.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment