Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added replace for URLs within value attributes.

  • Loading branch information...
commit ed92f79c0c409299a5c48dcf8aa0abf8520fee98 1 parent f8cc8ff
@kefo authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/gov/loc/ndmso/proxyfilter/RequestProxy.java
View
1  src/gov/loc/ndmso/proxyfilter/RequestProxy.java
@@ -174,6 +174,7 @@ public static void execute(final String target, final String collection, final H
proxyResponseStr = proxyResponseStr.replaceAll("href=\"/", "href=\"/diglib/");
proxyResponseStr = proxyResponseStr.replaceAll("href=\"/diglib/loc\\.", "href=\"/diglib/id/loc.");
proxyResponseStr = proxyResponseStr.replaceAll("src=\"/", "src=\"/diglib/");
+ proxyResponseStr = proxyResponseStr.replaceAll("value=\"/", "value=\"/diglib/");
proxyResponseStr = proxyResponseStr.replaceAll("url\\(/", "url\\(/diglib/");
proxyResponseStr = proxyResponseStr.replaceAll("url\\(\"/", "url\\(\"/diglib/");
proxyResponseStr = proxyResponseStr.replaceAll("natlibcat@loc.gov", "ndmso@loc.gov");
Please sign in to comment.
Something went wrong with that request. Please try again.