You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I access a dokuwiki page on some dokuwikis and the HTTP request has referer HTTP header set to, e.g. referer: https://www.google.com/url?q=https://opendata.gov.cz/edu:konference:2019&sa=D&ust=1567692046621000&usg=AFQjCNG_0v_FF28O_RTQNJ0RZqqp49fGig - this is what Google Forms does when a link to https://opendata.gov.cz/edu:konference:2019 is used - the page has words from the https://opendata.gov.cz/edu:konference:2019 URL marked as search results, even though I did no search.
See this example, or this one: curl https://wiki.bash-hackers.org/ -H 'referer: https://www.google.com/url?q=https://opendata.wiki.gov.cz/edu:konference:2019&sa=D&ust=1567692046621000&usg=AFQjCNG_0v_FF28O_RTQNJ0RZqqp49fGig' | grep mark
Expected behavior: [What you expected to happen]
No search results marked with <span class="mark">
Actual behavior: [What actually happened]
Words from the referer header marked as <span class="mark">
Versions
[DokuWiki] Release 2018-04-22b "Greebo"
Screenshots or Logs
[Paste your logs or attach the screenshot]
The text was updated successfully, but these errors were encountered:
This one is interesting. I don't think we can get user query from referrer anymore from Google, if users are being redirected from the Google /url endpoint.
We don't want to split the URL to highlight the "query", especially when q is the URL of the page itself - e.g. Google Form's redirect https://www.google.com/url
This will also ignore queries like `syntax site:https://www.dokuwiki.org` but it should be fine. Just don't want to use a full parser here.
This fixes#2848.
Description
When I access a dokuwiki page on some dokuwikis and the HTTP request has
referer
HTTP header set to, e.g.referer: https://www.google.com/url?q=https://opendata.gov.cz/edu:konference:2019&sa=D&ust=1567692046621000&usg=AFQjCNG_0v_FF28O_RTQNJ0RZqqp49fGig
- this is what Google Forms does when a link to https://opendata.gov.cz/edu:konference:2019 is used - the page has words from thehttps://opendata.gov.cz/edu:konference:2019
URL marked as search results, even though I did no search.Apparently (giterlizzi/dokuwiki-template-bootstrap3#438 (comment)) this is a Dokuwiki
getgooglequery
functionality for highlighting search results from search engines, which, however, does not work correctly when placing a link into a Google Form.Steps to reproduce
curl https://wiki.bash-hackers.org/ -H 'referer: https://www.google.com/url?q=https://opendata.wiki.gov.cz/edu:konference:2019&sa=D&ust=1567692046621000&usg=AFQjCNG_0v_FF28O_RTQNJ0RZqqp49fGig' | grep mark
Expected behavior: [What you expected to happen]
No search results marked with
<span class="mark">
Actual behavior: [What actually happened]
Words from the
referer
header marked as<span class="mark">
Versions
[DokuWiki] Release 2018-04-22b "Greebo"
Screenshots or Logs
[Paste your logs or attach the screenshot]
The text was updated successfully, but these errors were encountered: