зеркало из https://github.com/mozilla/gecko-dev.git
Move shell_escape from CGI.pl to globals.pl
Remove CGI.pl dependency from multidiff.cgi Bug #44642
This commit is contained in:
Родитель
a2e5eda35e
Коммит
3d64033baa
|
@ -85,13 +85,6 @@ sub url_encode3 {
|
|||
return $s;
|
||||
}
|
||||
|
||||
# Quotify a string, suitable for invoking a shell process
|
||||
sub shell_escape {
|
||||
my ($file) = @_;
|
||||
$file =~ s/([ \"\'\`\~\?\$\&\|\!<>\(\)\[\]\;\:])/\\$1/g;
|
||||
return $file;
|
||||
}
|
||||
|
||||
# Make sure CVS revisions are in a specific format
|
||||
sub sanitize_revision {
|
||||
my ($rev) = @_;
|
||||
|
|
|
@ -1248,4 +1248,11 @@ sub Fix_BonsaiLink {
|
|||
return $bonsai_path;
|
||||
}
|
||||
|
||||
# Quotify a string, suitable for invoking a shell process
|
||||
sub shell_escape {
|
||||
my ($file) = @_;
|
||||
$file =~ s/([ \"\'\`\~\^\?\$\&\|\!<>\(\)\[\]\;\:])/\\$1/g;
|
||||
return $file;
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
|
||||
use strict;
|
||||
|
||||
require 'CGI.pl';
|
||||
require 'globals.pl';
|
||||
|
||||
$|=1;
|
||||
|
|
Загрузка…
Ссылка в новой задаче