projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.0.20 (RT#13852)
[freeside.git]
/
rt
/
lib
/
RT
/
Interface
/
Web.pm
diff --git
a/rt/lib/RT/Interface/Web.pm
b/rt/lib/RT/Interface/Web.pm
index
1f2f488
..
59d3154
100644
(file)
--- a/
rt/lib/RT/Interface/Web.pm
+++ b/
rt/lib/RT/Interface/Web.pm
@@
-962,7
+962,7
@@
not contain a slash-dot C</.>, and does not contain any nulls.
sub ComponentPathIsSafe {
my $self = shift;
my $path = shift;
sub ComponentPathIsSafe {
my $self = shift;
my $path = shift;
- return
$path !~ m{(?:^|/)\.} and $path !~ m{\0}
;
+ return
($path !~ m{(?:^|/)\.} and $path !~ m{\0})
;
}
=head2 PathIsSafe
}
=head2 PathIsSafe
@@
-1246,6
+1246,10
@@
sub ValidateWebConfig {
."otherwise your internal links may be broken.");
}
."otherwise your internal links may be broken.");
}
+ return; #next warning flooding our logs, doesn't seem applicable to our use
+ # (SCRIPT_NAME is the full path, WebPath is just the beginning)
+ #in vanilla RT does something eat the local part of SCRIPT_NAME 1st?
+
# Unfortunately, there is no reliable way to get the _path_ that was
# requested at the proxy level; simply disable this warning if we're
# proxied and there's a mismatch.
# Unfortunately, there is no reliable way to get the _path_ that was
# requested at the proxy level; simply disable this warning if we're
# proxied and there's a mismatch.