vhardy      2002/09/25 04:59:59

  Modified:    sources/org/apache/batik/bridge UpdateManager.java
               sources/org/apache/batik/apps/svgbrowser Main.java
  Log:
  Secured code that assumed no security management
  
  Revision  Changes    Path
  1.18      +5 -4      xml-batik/sources/org/apache/batik/bridge/UpdateManager.java
  
  Index: UpdateManager.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/UpdateManager.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- UpdateManager.java        24 Jul 2002 00:02:28 -0000      1.17
  +++ UpdateManager.java        25 Sep 2002 11:59:59 -0000      1.18
  @@ -47,12 +47,13 @@
   
       static final long MIN_REPAINT_TIME;
       static {
  -        String s = System.getProperty
  -            ("org.apache.batik.min_repaint_time", "20");
           long value = 20;
           try {
  +            String s = System.getProperty
  +            ("org.apache.batik.min_repaint_time", "20");
               value = Long.parseLong(s);
  -        } catch (NumberFormatException nfe) {
  +        } catch (SecurityException se) {
  +        } catch (NumberFormatException nfe){
           } finally {
               MIN_REPAINT_TIME = value;
           }
  
  
  
  1.44      +3 -3      xml-batik/sources/org/apache/batik/apps/svgbrowser/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/apps/svgbrowser/Main.java,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- Main.java 9 Sep 2002 13:02:07 -0000       1.43
  +++ Main.java 25 Sep 2002 11:59:59 -0000      1.44
  @@ -305,9 +305,9 @@
               = new ApplicationSecurityEnforcer(this.getClass(),
                                                 SQUIGGLE_SECURITY_POLICY);
   
  -        Authenticator.setDefault(new JAuthenticator());
  -                                              
           try {
  +            Authenticator.setDefault(new JAuthenticator());
  +
               preferenceManager = new 
XMLPreferenceManager(SQUIGGLE_CONFIGURATION_FILE,
                                                            defaults);
               String dir = System.getProperty(PROPERTY_USER_HOME);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to