You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2005/10/12 21:03:29 UTC
svn commit: r315000 - in /incubator/roller/branches/roller_2.0:
src/org/roller/presentation/weblog/actions/WeblogEntryFormAction.java
web/WEB-INF/classes/roller.properties
Author: agilliland
Date: Wed Oct 12 12:03:24 2005
New Revision: 315000
URL: http://svn.apache.org/viewcvs?rev=315000&view=rev
Log:
set the trackbacks.allowedURLs property to be empty by default.
Modified:
incubator/roller/branches/roller_2.0/src/org/roller/presentation/weblog/actions/WeblogEntryFormAction.java
incubator/roller/branches/roller_2.0/web/WEB-INF/classes/roller.properties
Modified: incubator/roller/branches/roller_2.0/src/org/roller/presentation/weblog/actions/WeblogEntryFormAction.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_2.0/src/org/roller/presentation/weblog/actions/WeblogEntryFormAction.java?rev=315000&r1=314999&r2=315000&view=diff
==============================================================================
--- incubator/roller/branches/roller_2.0/src/org/roller/presentation/weblog/actions/WeblogEntryFormAction.java (original)
+++ incubator/roller/branches/roller_2.0/src/org/roller/presentation/weblog/actions/WeblogEntryFormAction.java Wed Oct 12 12:03:24 2005
@@ -916,11 +916,11 @@
boolean allowTrackback = true;
String allowedURLs = RollerConfig.getProperty("trackback.allowedURLs");
- if (allowedURLs != null)
+ if (allowedURLs != null && allowedURLs.trim().length() > 0)
{
- // in the case that the administrator has enabled trackbacks
- // for only specific URLs, set it to false by default
- allowTrackback = false;
+ // in the case that the administrator has enabled trackbacks
+ // for only specific URLs, set it to false by default
+ allowTrackback = false;
String[] splitURLs = allowedURLs.split("\\|\\|");
for (int i=0; i<splitURLs.length; i++)
{
Modified: incubator/roller/branches/roller_2.0/web/WEB-INF/classes/roller.properties
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_2.0/web/WEB-INF/classes/roller.properties?rev=315000&r1=314999&r2=315000&view=diff
==============================================================================
--- incubator/roller/branches/roller_2.0/web/WEB-INF/classes/roller.properties (original)
+++ incubator/roller/branches/roller_2.0/web/WEB-INF/classes/roller.properties Wed Oct 12 12:03:24 2005
@@ -257,7 +257,7 @@
#----------------------------------
# trackback protection
-trackback.allowedURLs=http://w3.ibm.com/.*||http://another.example.com/.*
+trackback.allowedURLs=
#----------------------------------
# misc settings