Thread (11 messages) 11 messages, 3 authors, 2016-06-15

Re: [PATCHv2] gitweb: refactor input parameters parse/validation

flat view

From: Giuseppe Bilotta <hidden>
Date: 2016-06-15 22:45:28

On Fri, Oct 10, 2008 at 5:01 PM, Shawn O. Pearce [off-list ref] wrote:
Giuseppe Bilotta [off-list ref] wrote:
quoted
+sub validate_action {
+     my $input = shift || return undef;
+     return undef unless exists $actions{$action};
+     return $action;
+}
Shouldn't $action here be $input?
Urgh. Yes, yes it should. Good catch. Should I resend?


-- 
Giuseppe "Oblomov" Bilotta
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help