Closed
Bug 97983
Opened 24 years ago
Closed 24 years ago
ExtractUrlPart allows no access to the directory part of the url
Categories
(Core :: Networking, defect, P3)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla0.9.5
People
(Reporter: andreas.otte, Assigned: andreas.otte)
References
Details
Attachments
(1 file, 1 obsolete file)
4.82 KB,
patch
|
dougt
:
review+
darin.moz
:
superreview+
|
Details | Diff | Splinter Review |
ExtractUrlPart does not allow access to the directory part of an url. Also the
Start and Endpositions are sometimes calulated from the filebasename-string
although another part of the url is requested.
Assignee | ||
Comment 1•24 years ago
|
||
Fixing the calculation of start and endpositions from filebasename to the
correct string is an easy fix.
On the other hand: do we really need these start and endpositions? It's easy to
find some examples where it will fail to calculate the right positions, as also
indicated by Doug's comment in the source.
The url_directory mask is missused to return the whole path. On the other hand
there is no way to access the directory component alone. This should be be fixed
with an additional mask url_Path. Before that can happen the url_-masks have to
be freed from their escape/unescape duties, dependency on bug 94796.
Assignee | ||
Comment 2•24 years ago
|
||
Assignee | ||
Comment 3•24 years ago
|
||
Assignee | ||
Comment 4•24 years ago
|
||
Now that 94796 is in the patch is complete. It introduces a new bitmask url_Path
which goes for the whole urlpath. The directory component can now be accessed by
it's normal bitmask. Also fixed start/endpositions as much as possible.
Need r=/sr=
Assignee | ||
Updated•24 years ago
|
Attachment #47999 -
Attachment is obsolete: true
Updated•24 years ago
|
Attachment #48692 -
Flags: review+
Comment 5•24 years ago
|
||
Comment on attachment 48692 [details] [diff] [review]
complete patch
glad to see this flag added :-)
and thanks for cleaning up some of this code. sr=darin
Attachment #48692 -
Flags: superreview+
Assignee | ||
Comment 6•24 years ago
|
||
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 7•24 years ago
|
||
I think this change broke something in mailnews. see bug #99657
Assignee | ||
Comment 9•24 years ago
|
||
Charlie, just replace all url_Directory masks with url_Path which is the correct
one if you want to get the whole path.
Comment 10•24 years ago
|
||
Yep! I figured that out, of course.
You need to log in
before you can comment on or make changes to this bug.
Description
•