use -raw tokens or not? Fixed, but read this before submitting

kzuser - December 16, 2007 - 12:45
Project:Pathauto
Version:5.x-2.0
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:kzuser
Status:closed
Description

after setup it i see this

You are using the token [user] which has a -raw companion available [user-raw]. For Pathauto patterns you should use the -raw version of tokens unless you really know what you are doing. See the Pathauto help for more details.

how to fix it

#1

greggles - December 16, 2007 - 18:28
Priority:critical» normal
Status:active» active (needs more info)

Please see http://groups.drupal.org/node/6706#pattern_changes for more details.

If that doesn't answer your question please followup in this issue.

#2

greggles - December 16, 2007 - 21:47
Title:how to fix it» use -raw tokens or not

more descriptive title...

#3

greggles - December 31, 2007 - 20:24
Status:active (needs more info)» closed

no response as requested in comment 1 - assuming to be fixed/closed.

#4

joshden - January 2, 2008 - 03:47

This confused me as well. In admin/settings/pathauto under "Node path settings," it says

[title-raw]
Unfiltered node title. WARNING - raw user input.

I instead used [title] thinking it wouldn't be "tainted" like [title-raw] might be. I was surprised by the message I saw:

For Pathauto patterns you should use the -raw version of tokens unless you really know what you are doing

But it made more sense after reading admin/help/pathauto. Does this have to do with the fact that pathauto uses the token module? Maybe the "WARNING - raw user input" line should be changed to something that implies -raw patterns are preferred over their non-raw counterparts (if I'm understanding this correctly).

I'm using version 5.x-2.0.

Thanks!
Josh

#5

joshden - January 2, 2008 - 03:50
Status:closed» active

Sorry, this appears to be a duplicate of http://drupal.org/node/195070.

#6

greggles - January 2, 2008 - 11:00
Title:use -raw tokens or not» use -raw tokens or not? Fixed, but read this before submitting

Yes - and a duplicate of several others. Basically we can't change those WARNINGS because they are relevant in some areas that the token module is used. I'm going to leave this as active so that people are more likely to see it but I don't plan on responding about it much more.

#7

greggles - January 19, 2008 - 21:41
Status:active» fixed

#8

Anonymous (not verified) - February 2, 2008 - 21:42
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.