external/beanshell/bsh-2.0b1-src.patch | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)
New commits: commit 3c891408eada15276c8e814a895275900bdfd1a1 Author: rbuj <robert....@gmail.com> Date: Wed Jul 23 09:08:47 2014 +0200 beanshell: encode(String) in URLEncoder has been deprecated http://docs.oracle.com/javase/1.5.0/docs/api/java/net/URLEncoder.html Change-Id: Ie21fdd12206c7954e99761826f98686c4567aa64 Reviewed-on: https://gerrit.libreoffice.org/10482 Reviewed-by: Tor Lillqvist <t...@collabora.com> Tested-by: Tor Lillqvist <t...@collabora.com> diff --git a/external/beanshell/bsh-2.0b1-src.patch b/external/beanshell/bsh-2.0b1-src.patch index 786bc9b..6162e73 100644 --- a/external/beanshell/bsh-2.0b1-src.patch +++ b/external/beanshell/bsh-2.0b1-src.patch @@ -116,3 +116,31 @@ win.toFront(); splashScreen = win; } +--- misc/BeanShell/src/bsh/Remote.java 2003-12-19 17:14:29.000000000 +0100 ++++ misc/build/BeanShell/src/bsh/Remote.java 2014-07-23 08:52:39.000000000 +0200 +@@ -137,13 +137,14 @@ + static String doHttp( String postURL, String text ) + { + String returnValue = null; ++ ++ try { + StringBuffer sb = new StringBuffer(); + sb.append( "bsh.client=Remote" ); + sb.append( "&bsh.script=" ); +- sb.append( URLEncoder.encode( text ) ); ++ sb.append( URLEncoder.encode(text,"UTF-8") ); + String formData = sb.toString( ); + +- try { + URL url = new URL( postURL ); + HttpURLConnection urlcon = + (HttpURLConnection) url.openConnection( ); +@@ -172,6 +173,8 @@ + + System.out.println( "Return Value: "+returnValue ); + ++ } catch (UnsupportedEncodingException e) { ++ System.out.println(e); // bad character encoding + } catch (MalformedURLException e) { + System.out.println(e); // bad postURL + } catch (IOException e2) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits