Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F80553
D7531.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
657 B
Referenced Files
None
Subscribers
None
D7531.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7531: Tighten a regular expression in `repository.create`
Attached
Detach File
Event Timeline
Log In to Comment