X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2ba51ef35957ceb5c56ec9cbd0a03b12b17a5c48..b6f73f7acffa9b2f37c78826ff6cee89987a7edc:/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