Changeset c810694


Ignore:
Timestamp:
Nov 7, 2013 12:29:05 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
5a34e1d
Parents:
ca866d48
Message:
  • i2psnark: Fix file links, broken in -12 (ticket #1114)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java

    rca866d48 rc810694  
    11801180
    11811181        String basename = snark.getBaseName();
     1182        String fullBasename = basename;
    11821183        if (basename.length() > MAX_DISPLAYED_FILENAME_LENGTH) {
    11831184            String start = basename.substring(0, MAX_DISPLAYED_FILENAME_LENGTH);
     
    13271328        }
    13281329
    1329         String encodedBaseName = urlEncode(basename);
     1330        String encodedBaseName = urlEncode(fullBasename);
    13301331        // File type icon column
    13311332        out.write("</td>\n<td>");
     
    14411442                // Single quotes in translate strings with parameters must be doubled.
    14421443                // Then the remaining single quote must be escaped
    1443                 out.write(_("Are you sure you want to delete the file \\''{0}.torrent\\'' (downloaded data will not be deleted) ?", basename));
     1444                out.write(_("Are you sure you want to delete the file \\''{0}\\'' (downloaded data will not be deleted) ?", snark.getName()));
    14441445                out.write("')) { return false; }\"");
    14451446                out.write(" src=\"" + _imgPath + "remove.png\" alt=\"");
     
    14611462            // Single quotes in translate strings with parameters must be doubled.
    14621463            // Then the remaining single quote must be escaped
    1463             out.write(_("Are you sure you want to delete the torrent \\''{0}\\'' and all downloaded data?", basename));
     1464            out.write(_("Are you sure you want to delete the torrent \\''{0}\\'' and all downloaded data?", fullBasename));
    14641465            out.write("')) { return false; }\"");
    14651466            out.write(" src=\"" + _imgPath + "delete.png\" alt=\"");
Note: See TracChangeset for help on using the changeset viewer.