forked from curl/curl-www
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview.cgi
executable file
·37 lines (28 loc) · 849 Bytes
/
view.cgi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/perl
require "CGI.pm";
require "../curl.pm";
my $num = CGI::param('id');
# remove non-digits
$num =~ s/[^0-9]//g;
if($num < 1) {
print "Content-Type: text/html\n\n";
header("View a Bug Report");
print <<MOO
<form action="view.cgi" method="GET">
Enter bug report number:
<input type="text" name="id">
<input type="submit" name="view">
</form>
The number is one of those in the <a href="https://sourceforge.net/bugs/?group_id=976">sourceforge bug tracker</a> for the curl project.
MOO
;
footer();
}
elsif($num < 10000) {
# low numbers are assumed to be the "new" numbers since the switch we
# did on Dec 12 2012
print "Location: https://sourceforge.net/p/curl/bugs/$num/\n\n";
}
else {
print "Location: https://sourceforge.net/tracker/index.php?func=detail&aid=$num&group_id=976&atid=100976\n\n";
}