Changeset 3012


Ignore:
Timestamp:
Dec 8, 2006, 2:32:53 PM (16 years ago)
Author:
Martin Svensson
Message:

References #444.Added the check of existing path for this plugin too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/clients/web/net/sf/basedb/clients/web/plugins/SimpleExport.java

    r2942 r3012  
    185185        }
    186186        else
    187         {
     187        {         
     188          Object parameterValue = request.getParameterValue(OVERWRITE);
     189          boolean overwrite = parameterValue != null ? (Boolean)parameterValue : false;
     190          if (!pathCanBeUsed((String)request.getParameterValue(ri.getParameter(SAVE_AS).getName()), overwrite))
     191          {
     192            response.setError("File exists: " + (String)request.getParameterValue(ri.getParameter(SAVE_AS).getName()), null);
     193            return;
     194          }
    188195          storeValue(job, request, ri.getParameter(SAVE_AS));
    189196          storeValue(job, request, ri.getParameter(OVERWRITE));
Note: See TracChangeset for help on using the changeset viewer.