right now
example.com/a_b_c?d=1
example.com/a_b?c_d=1
would result in the same filename
../example.com/a_b_c_d=1.html
The simple fix might be to exchange the ? for 3 _ instead of 1.
example.com/a_b_c?d=1 - ../example.com/a_b_c___d=1.html
example.com/a_b?c_d=1 - ../example.com/a_b___c_d=1.html
Thoughts?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | boost-537186.patch | 10.82 KB | mikeytown2 |
| #4 | boost-537186.1.patch | 17.68 KB | mikeytown2 |
| #1 | boost-537186.patch | 8.65 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 commentedjust tested and === works; it's something that almost no one will use in a URL from what I can tell
http://www.google.com/search?q=%22%3D%3D%3D%22
http://www.bing.com/search?q=%22%3D%3D%3D%22
http://search.yahoo.com/search?p=%22%3D%3D%3D%22
Comment #2
eagereyes commentedWhy not simply keep the question mark in the file name? It's a perfectly legal character, and that would solve the problem.
Comment #3
mikeytown2 commented? is not a legal character for filenames on windows.
http://en.wikipedia.org/wiki/Filename#Reserved_characters_and_words
Comment #4
mikeytown2 commentedComment #5
mikeytown2 commentedChange this so it can take user input on what to replace
?with. Let the admin choose.Comment #6
mikeytown2 commentedIt's now a Global variable instead of ===
Comment #7
mikeytown2 commentedcommitted