X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/94b5a59631f22e4e57561a6244c24b93db77f589..5af4f00db1cbac83f52bf02b424968fd0ef387b1:/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