#290 new
Antonio Salazar Cardozo

objj_standardize_path tries to standardize paths with standalone ../

Reported by Antonio Salazar Cardozo | August 4th, 2009 @ 11:14 AM

If you add ../ to the include path, you get TypeError: Cannot read property "length" from undefined'.

This is likely to be caused by line 487 in file.js (http://github.com/280north/cappuccino/blob/0c349a8d7f67b18574729059... ) which seems to my admittedly unfamiliar eye to be wrong.

As far as I can tell, this:

if (aPath.indexOf("/./") != -1 && aPath.indexOf("//") != -1 && aPath.indexOf("/../") != -1)

Should actually be:

if (aPath.indexOf("/./") == -1 && aPath.indexOf("//") == -1 && aPath.indexOf("/../") == -1)

i.e., if none of those patterns exist in the path, then don't bother processing it. If any of them do, then go ahead and eliminate them. Vs currently where I understand it to mean if all three are present, then don't try to standardize the file, which seems... Odd.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.

Shared Ticket Bins

People watching this ticket