Closed (fixed)
Project:
Pathauto
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
9 Jan 2011 at 13:46 UTC
Updated:
29 Jun 2011 at 06:42 UTC
Jump to comment: Most recent file
If I create a alias with the path, for example "themes", when i go in this path (www.example.com/themes) I receive a forbidden access because the path is the same of a folder. Is possible have a result likes themes-0
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1020412-pathauto-prevent-directory-file-names.patch | 1.83 KB | dave reid |
Comments
Comment #1
gregglesI'm not sure if/how we can do this, but it seems somewhat worthwhile.
Comment #2
dave reidPathauto already prevents its own aliases from overwriting existing views paths. This is a duplicate of the core issue with path.module: #121362: Require dedicated permission(s) to set aliases pointing to existing or reserved paths
Comment #3
dave reidGAK, now I see that Pathauto allows aliases like that to be created. We need to check is_file() || is_dir().
Comment #4
dave reidComment #5
dave reidCommitted #4 to Git: http://drupalcode.org/project/pathauto.git/commit/675b52f
Comment #6
dave reidFixed on 6.x-2.x with http://drupalcode.org/project/pathauto.git/commit/0039c55
Comment #7
dave reidCommitted to 6.x-1.x: http://drupalcode.org/project/pathauto.git/commit/eadbab9