[vlc-devel] [vlc-commits] web intf: fix uri decoding when browsing.
Rémi Denis-Courmont
remi at remlab.net
Sat Oct 22 07:45:11 CEST 2011
Hello,
On Friday 21 October 2011, Francois Cartegnie wrote:
> vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Oct 21
> 20:39:15 2011 +0200| [a8de45a9baf98a1c77d1518421da848448537344] |
> committer: Francois Cartegnie
>
> web intf: fix uri decoding when browsing.
>
> And now make use of URI
>
> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a8de45a9baf98a1c77
> > d1518421da848448537344
>
> ---
>
> share/lua/http/js/controlers.js | 10 +++++-----
> share/lua/intf/modules/httprequests.lua | 14 ++++++++++----
> 2 files changed, 15 insertions(+), 9 deletions(-)
>
> diff --git a/share/lua/http/js/controlers.js
> b/share/lua/http/js/controlers.js index fb21dd5..43d70da 100644
> --- a/share/lua/http/js/controlers.js
> +++ b/share/lua/http/js/controlers.js
> @@ -163,16 +163,16 @@ function sendCommand(params,append){
> }
> }
> function browse(dir){
> - dir = dir==undefined ? '~' : dir;
> + dir = dir==undefined ? 'file://~' : dir;
Do we really want to hard-code this? Can't we use undefined as the default
value instead?
--
Rémi Denis-Courmont
http://www.remlab.info
More information about the vlc-devel
mailing list