Skip to content

Commit

Permalink
escape username when creating an ontology subscribtion
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Apr 29, 2024
1 parent eb424a1 commit 7ce5d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/subscriptions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class SubscriptionsController < ApplicationController
def create
# Try to get the user linked data instance
user_id = params[:user_id]
u = LinkedData::Client::Models::User.find(user_id, include: 'all')
u = LinkedData::Client::Models::User.get(helpers.escape(user_id), include: 'all')
raise Exception if u.nil?

# Try to get the ontology linked data instance
Expand Down

0 comments on commit 7ce5d10

Please sign in to comment.