-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #1249: support a src param to track "reported-with" #1255
Conversation
@@ -142,7 +142,7 @@ function BugForm() { | |||
if (!location.search.search(/open=1/) && !location.search.search(/url=/)) { | |||
return; | |||
} | |||
var urlParam = location.search.match(/url=(.+)/); | |||
var urlParam = location.search.match(/url=([^&]*)/); |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- A question for the url containing
&
- A change for the python code which will not work as you expect.
# See https://github.com/webcompat/webcompat.com/issues/1254 to track | ||
# supporting only the src param | ||
if session['src']: | ||
form['reported_with'] = session.pop('src', None) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
@@ -142,7 +142,7 @@ function BugForm() { | |||
if (!location.search.search(/open=1/) && !location.search.search(/url=/)) { | |||
return; | |||
} | |||
var urlParam = location.search.match(/url=(.+)/); | |||
var urlParam = location.search.match(/url=([^&]*)/); |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
fe75740
to
2b37a36
Compare
Answered here: #1255 (comment) (and another question for you).
Done, thank you! |
Thanks @miketaylr |
r? @karlcow