[Building Sakai] Fixing Validate.encodeUrl?`

Matthew Buckett matthew.buckett at oucs.ox.ac.uk
Fri Feb 12 01:29:06 PST 2010


On 12 February 2010 09:03, David Horwitz <david.horwitz at uct.ac.za> wrote:
>
> public String encodeUrl(String url) {
>        String ret = null;
>        try {
>            ret = URLEncoder.encode(url, "utf8");
>        } catch (UnsupportedEncodingException e) {
>            e.printStackTrace();
>            return url;
>
>        }
>        return ret;
>    }

The current implementation doesn't escape forward slashes (/) but the
JDK version does.

-- 
  Matthew Buckett
  VLE Developer, LTG, Oxford University Computing Services


More information about the sakai-dev mailing list