detect ';' delimiters when yanking URL

fixes #1987
This commit is contained in:
Daniel Karbach 2016-09-29 11:02:30 +02:00
parent 4aa3ea89b3
commit b195b5b40d

View File

@ -682,7 +682,10 @@ class CommandDispatcher:
else:
flags |= QUrl.FullyEncoded
url = QUrl(self._current_url())
url_query = QUrlQuery(url)
url_query = QUrlQuery()
if ';' in url.query():
url_query.setQueryDelimiters('=', ';')
url_query.setQuery(url.query())
for key in dict(url_query.queryItems()):
if key in config.get('general', 'yank-ignored-url-parameters'):
url_query.removeQueryItem(key)