projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of https://github.com/jgoodman/Freeside
[freeside.git]
/
rt
/
share
/
html
/
REST
/
1.0
/
ticket
/
link
diff --git
a/rt/share/html/REST/1.0/ticket/link
b/rt/share/html/REST/1.0/ticket/link
index
aa80b0d
..
023dc81
100755
(executable)
--- a/
rt/share/html/REST/1.0/ticket/link
+++ b/
rt/share/html/REST/1.0/ticket/link
@@
-2,7
+2,7
@@
%#
%# COPYRIGHT:
%#
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-201
2
Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-201
4
Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@
-81,10
+81,9
@@
if ($id && $object && $id != $object) {
goto OUTPUT;
}
$id ||= $object;
goto OUTPUT;
}
$id ||= $object;
-unless ($id =~ /^\d+$/ && $to =~ /^\d+$/) {
- my $bad = ($id !~ /^\d+$/) ? $id : $to;
+unless ($id =~ /^\d+$/) {
$output = $r->path_info. "\n";
$output = $r->path_info. "\n";
- $output .= "Invalid ticket id: '$
ba
d'.\n";
+ $output .= "Invalid ticket id: '$
i
d'.\n";
$status = "400 Bad Request";
goto OUTPUT;
}
$status = "400 Bad Request";
goto OUTPUT;
}