Changeset 5160


Ignore:
Timestamp:
Oct 23, 2009, 1:44:15 PM (14 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1416: Base1PluginExecuter doesn't set the plug-in configuration description correctly

Also changed the web page to use niceFormat() instead of encodeTags()

Location:
branches/2.14-stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.14-stable/src/plugins/core/net/sf/basedb/plugins/Base1PluginExecuter.java

    r5095 r5160  
    412412          {
    413413            if (config.isInDatabase()) config = PluginConfiguration.getById(dc,config.getId());
    414             config.setDescription(headers.get("descr").replaceAll("\\\\r\\\\n", "\n"));
     414            config.setDescription(headers.get("descr").replaceAll("\\\\r\\\\n|\\\\n", "\n"));
    415415          }
    416416         
     
    463463        throw new BaseException("Command unknown: "+command);
    464464      }
     465      dc.commit();
    465466    }
    466467    catch (Throwable ex)
  • branches/2.14-stable/www/admin/plugindefinitions/view_plugin.jsp

    r5040 r5160  
    443443                    visible="<%=pc.isRemoved()%>"
    444444                  /><%=Base.getLinkedName(ID, pc, false, true)%></tbl:cell>
    445                 <tbl:cell column="description"><%=HTML.encodeTags(pc.getDescription())%></tbl:cell>
     445                <tbl:cell column="description"><%=HTML.niceFormat(pc.getDescription())%></tbl:cell>
    446446                <tbl:cell column="configure">
    447447                <%
Note: See TracChangeset for help on using the changeset viewer.