Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
shells
signup-site
Commits
ced5f51c
Commit
ced5f51c
authored
Nov 08, 2018
by
Cool Fire
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sql query
parent
588233c2
Pipeline
#1096
passed with stages
in 4 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
routes/details.rb
routes/details.rb
+1
-1
No files found.
routes/details.rb
View file @
ced5f51c
...
...
@@ -45,7 +45,7 @@ class SignupSite < Sinatra::Base
mysql
=
mysql_connect
if
session
.
key?
(
:invite
)
query
=
mysql
.
prepare
'SELECT * FROM invites where `key` = ? LIMIT 1'
record
=
query
.
execute
(
session
[
:
usernam
e
]).
first
record
=
query
.
execute
(
session
[
:
invit
e
]).
first
session
[
:parent
]
=
Rack
::
Utils
.
escape_html
(
record
[
'parent'
])
else
insert
=
mysql
.
prepare
'INSERT INTO invites (`email`, `key`, `parent`) VALUES (?, ?, ?)'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment