forked from I2P_Developers/i2p.i2p
i2ptunnel: Fix multipart config for /register
Fix CSP for /register
This commit is contained in:
@@ -344,6 +344,18 @@
|
||||
<replace file="../jsp/web-out.xml">
|
||||
<replacefilter token="<!-- precompiled servlets -->" value="${jspc.web.fragment}" />
|
||||
</replace>
|
||||
<!-- Add multipart config to servlets that need them -->
|
||||
<property name="__match1" value="<servlet-class>net.i2p.i2ptunnel.jsp." />
|
||||
<property name="__match2" value="_jsp</servlet-class>" />
|
||||
<property name="__class1" value="${__match1}register${__match2}" />
|
||||
<property name="__multipart" value="
|
||||
<multipart-config>
|
||||
<max-file-size>131072</max-file-size>
|
||||
<max-request-size>131072</max-request-size>
|
||||
</multipart-config>" />
|
||||
<replace file="../jsp/web-out.xml">
|
||||
<replacefilter token="${__class1}" value="${__class1}${__multipart}" />
|
||||
</replace>
|
||||
</target>
|
||||
|
||||
<uptodate property="precompilejsp.uptodate" targetfile="../jsp/web-out.xml">
|
||||
|
||||
Reference in New Issue
Block a user