|
Lines 56-62
Link Here
|
| 56 |
|
56 |
|
| 57 |
BEGIN { |
57 |
BEGIN { |
| 58 |
|
58 |
|
| 59 |
searchdocument = "/home/httpd/cgi-aux/man/mansearch.aux"; |
59 |
searchdocument = "/usr/share/man-cgi-aux/mansearch.aux"; |
| 60 |
quote = ENVIRON["QUOTE"]; |
60 |
quote = ENVIRON["QUOTE"]; |
| 61 |
cgipath = ENVIRON["CG"]; |
61 |
cgipath = ENVIRON["CG"]; |
| 62 |
sedcmd = ENVIRON["SED"]; |
62 |
sedcmd = ENVIRON["SED"]; |
|
Lines 69-79
Link Here
|
| 69 |
} |
69 |
} |
| 70 |
# Have to be careful to single quote this |
70 |
# Have to be careful to single quote this |
| 71 |
# string later. |
71 |
# string later. |
| 72 |
gsub(/[^a-zA-Z0-9-_+ \t\/@%:;,$*|]/, " ", string); |
72 |
gsub(/[^a-zA-Z0-9\-_+ \t\/@%:;,$*|]/, " ", string); |
| 73 |
|
73 |
|
| 74 |
string = removeopts(string); |
74 |
string = removeopts(string); |
| 75 |
|
75 |
|
| 76 |
gsub(/[^a-zA-Z0-9-_+ \t\/@%:,]/, " ", options); |
76 |
gsub(/[^a-zA-Z0-9\-_+ \t\/@%:,]/, " ", options); |
| 77 |
|
77 |
|
| 78 |
if (!string) { |
78 |
if (!string) { |
| 79 |
if (system("test -r " searchdocument ) != 0) { |
79 |
if (system("test -r " searchdocument ) != 0) { |