git://git.camperquake.de
/
videosite.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a644eb4
)
libvideosite: limit connector names to letters
author
Ralf Ertzinger
<ralf@skytale.net>
Thu, 2 May 2013 16:39:40 +0000
(18:39 +0200)
committer
Ralf Ertzinger
<ralf@skytale.net>
Thu, 2 May 2013 16:39:40 +0000
(18:39 +0200)
libvideosite.pm
patch
|
blob
|
history
diff --git
a/libvideosite.pm
b/libvideosite.pm
index
5f3acdb
..
3dfe1c3
100644
(file)
--- a/
libvideosite.pm
+++ b/
libvideosite.pm
@@
-721,6
+721,11
@@
sub _cmd_connector {
$name = lc($name);
+ unless($name =~ m|^[a-z]+$|) {
+ _io("%s is not a valid connector name (only letters are allowed)", $name);
+ return;
+ }
+
if (_config_list_has(['defined-connectors'], $name)) {
_io("Connector already exists");
return;