Page MenuHomePhabricator

D7531.diff

diff --git a/src/applications/repository/conduit/ConduitAPI_repository_create_Method.php b/src/applications/repository/conduit/ConduitAPI_repository_create_Method.php
--- a/src/applications/repository/conduit/ConduitAPI_repository_create_Method.php
+++ b/src/applications/repository/conduit/ConduitAPI_repository_create_Method.php
@@ -83,7 +83,7 @@
$repository->setName($request->getValue('name'));
$callsign = $request->getValue('callsign');
- if (!preg_match('/[A-Z]+$/', $callsign)) {
+ if (!preg_match('/^[A-Z]+$/', $callsign)) {
throw new ConduitException('ERR-BAD-CALLSIGN');
}
$repository->setCallsign($callsign);

File Metadata

Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/4i/eb/nrp7ysnmsziytvul
Default Alt Text
D7531.diff (657 B)

Event Timeline