Bookmarks: Bookmarklet doesn't recognize already bookmarked urls with urlencoded chars

Created on 18 Jan 2018  路  8Comments  路  Source: nextcloud/bookmarks

bug good first issue

All 8 comments

As a cause, this neat, useless-looking line of code catches the eye: https://github.com/nextcloud/bookmarks/blob/master/controller/lib/bookmarks.php#L128

Mh @blizzz I cannot reproduce this with master?

Ah, ok. It's an encoding/matching problem.

The bookmarklet directs you to:

http://localhost:8008/index.php/apps/bookmarks/bookmarklet?...%2Fwiki%2FCorrespondance_entre_logiciels_libres_et_logiciels_propri%25C3%25A9taires&title=Correspondance%20entre%20logiciels%20libres%20et%20logiciels%20propri%C3%A9taires%20%E2%80%94%20Wikip%C3%A9dia

where the url is read as: .../wiki/Correspondance_entre_logiciels_libres_et_logiciels_propri%C3%A9taires

-- since the server code looks for exact matches, it doesn't find the existing bookmark.

Whereas if you go to

http://localhost:8008/index.php/apps/bookmarks/bookmarklet?...%2Fwiki%2FCorrespondance_entre_logiciels_libres_et_logiciels_propri%C3%A9taires&title=Correspondance%20entre%20logiciels%20libres%20et%20logiciels%20propri%C3%A9taires%20%E2%80%94%20Wikip%C3%A9dia

the URL is read as: .../wiki/Correspondance_entre_logiciels_libres_et_logiciels_propri茅taires

and the boorkmark is found.

@xXSTrikeXx Any reason for moving this back to 'backlog'? :)

Holding a smartphone in the hands while walking :D Sry I thought i have undone my fault for using github on smartphone in a browser 馃 :/ I hope its not to late to apologize :)

Edit: Undone it now correctly. Sorry for confusing you :D

No worries. I know the feeling. Github on mobile is like minimally invasive surgery with your bare hands :)

My friend next to me reading this - he麓s studying medicine - is ROFL due to that comparison with Github :D :D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sunjam picture sunjam  路  5Comments

paulcalabro picture paulcalabro  路  5Comments

kaffeeringe picture kaffeeringe  路  6Comments

skoelzow picture skoelzow  路  4Comments

saywebsolutions picture saywebsolutions  路  6Comments