X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7c2d7b25747a06919e8ec64f0b4391c33092d965..b82eca689e7374cdafbb3435c4168579850649ac:/apps/workbench/app/controllers/user_agreements_controller.rb diff --git a/apps/workbench/app/controllers/user_agreements_controller.rb b/apps/workbench/app/controllers/user_agreements_controller.rb index f8c316e58c..bec11f2dc6 100644 --- a/apps/workbench/app/controllers/user_agreements_controller.rb +++ b/apps/workbench/app/controllers/user_agreements_controller.rb @@ -15,7 +15,7 @@ class UserAgreementsController < ApplicationController def sign params[:checked].each do |checked| - if r = checked.match(/^([0-9a-f]+[^\/]*)/) + if (r = CollectionsHelper.match_uuid_with_optional_filepath(checked)) UserAgreement.sign uuid: r[1] end end