Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit

Permalink
Remove #!/ from URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
shinh committed May 4, 2011
1 parent f7424c4 commit 7eb2984
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions url.c
Original file line number Diff line number Diff line change
Expand Up @@ -1507,6 +1507,13 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current,
u = Strnew_m_charp("http://", url+14, NULL)->ptr;
}

/* remove #!/ */
if ((p = strstr(u, "#!/"))) {
size_t l = strlen(p+3);
memmove(p, p+3, l);
p[l] = '\0';
}

parseURL2(u, pu, current);
if (pu->scheme == SCM_LOCAL && pu->file == NULL) {
if (pu->label != NULL) {
Expand Down

0 comments on commit 7eb2984

Please sign in to comment.