Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
r175 committed - hopefully fix a few more url escaping issues
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
coverst...@googlecode.com  
View profile  
 More options Aug 7 2012, 10:46 pm
From: coverst...@googlecode.com
Date: Wed, 08 Aug 2012 02:46:16 +0000
Local: Tues, Aug 7 2012 10:46 pm
Subject: [coverstory] r175 committed - hopefully fix a few more url escaping issues
Revision: 175
Author:   thoma...@gmail.com
Date:     Tue Aug  7 19:46:04 2012
Log:      hopefully fix a few more url escaping issues
http://code.google.com/p/coverstory/source/detail?r=175

Modified:
  /trunk/CoverStoryDocument.m

=======================================
--- /trunk/CoverStoryDocument.m Thu Jul 26 21:21:31 2012
+++ /trunk/CoverStoryDocument.m Tue Aug  7 19:46:04 2012
@@ -1212,9 +1212,12 @@
      { 75., @"filelessthan75percent" },
    };
    for (CoverStoryCoverageFileData *fileData in fileDatas) {
-    NSString *name
-      = [[[fileData sourcePath] lastPathComponent]  
gtm_stringByEscapingForHTML];
-    NSString *link = [name stringByAppendingPathExtension:@"html"];
+    NSString *name = [[fileData sourcePath] lastPathComponent];
+    NSString *linkName
+      = [name gtm_stringByEscapingForHTML];
+    NSString *link
+      = [[name stringByAppendingPathExtension:@"html"]
+          stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
      float percent;
      [fileData coverageTotalLines:NULL
                         codeLines:NULL
@@ -1236,7 +1239,7 @@
       @"<tr class='fileline'>\n"
       @"<td class='filename'><a href='%@'>%@</a></td>\n"
       @"<td class='filepercent'><span class='%@'>%.2f</span></td>\n"
-     @"</tr>\n", link, name, classString, percent];
+     @"</tr>\n", link, linkName, classString, percent];
    }
    return filesHtml;
  }
@@ -1362,7 +1365,9 @@
                             preferredFilename:htmlFileName];
      if (!redirectURL) {
        // Not autoreleased because we want it outside of our pool.
-      redirectURL = [[NSString alloc] initWithFormat:@"./%@",  
htmlFileName];
+      redirectURL
+        = [[NSString alloc] initWithFormat:@"./%@",
+            [htmlFileName  
stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
      }
      [pool drain];
    }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »