After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 725381 - lua-factory: Add grl.unescape() helper
lua-factory: Add grl.unescape() helper
Status: RESOLVED FIXED
Product: grilo
Classification: Other
Component: plugins
unspecified
Other All
: Normal normal
: ---
Assigned To: grilo-maint
grilo-maint
Depends on:
Blocks:
 
 
Reported: 2014-02-28 09:32 UTC by Bastien Nocera
Modified: 2014-02-28 13:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
lua-factory: Add grl.unescape() helper (2.80 KB, patch)
2014-02-28 09:32 UTC, Bastien Nocera
none Details | Review
lua-factory: Add grl.unescape() and grl.decode helpers (4.41 KB, patch)
2014-02-28 10:47 UTC, Bastien Nocera
none Details | Review
lua-factory: Add grl.unescape() and grl.decode helpers (4.44 KB, patch)
2014-02-28 12:54 UTC, Bastien Nocera
committed Details | Review

Description Bastien Nocera 2014-02-28 09:32:49 UTC
We can do that by adding a direct libsoup dependency, which grlnet
already does depend on, or we could ship helpers in lua.

I prefer the former and encourage copy/paste lua code for what cannot be
implemented in C.
Comment 1 Bastien Nocera 2014-02-28 09:32:54 UTC
Created attachment 270543 [details] [review]
lua-factory: Add grl.unescape() helper

To unescape '%' encoded strings.
Comment 2 Bastien Nocera 2014-02-28 10:47:15 UTC
Created attachment 270549 [details] [review]
lua-factory: Add grl.unescape() and grl.decode helpers

grl.decode will decode '%' encoded strings (usually URLs),
and grl.unescape will unescape HTML-escaped strings, usually
unicode or reserved characters.
Comment 3 Bastien Nocera 2014-02-28 12:54:37 UTC
Created attachment 270557 [details] [review]
lua-factory: Add grl.unescape() and grl.decode helpers

grl.decode will decode '%' encoded strings (usually URLs),
and grl.unescape will unescape HTML-escaped strings, usually
unicode or reserved characters.
Comment 4 Bastien Nocera 2014-02-28 13:56:21 UTC
Attachment 270557 [details] pushed as e60fa1f - lua-factory: Add grl.unescape() and grl.decode helpers