Closed (fixed)
Project:
Image Resize Filter
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Aug 2012 at 18:08 UTC
Updated:
5 Jul 2015 at 21:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
quicksketchThanks Wim! Maybe we should allow numbers in there too? Data attributes can contain any alphanumeric character I believe.
Comment #2
wim leersI just looked it up, and the spec actually says no such thing:
So AFAICT, the patch above covers all use cases :) We could make the patch more strict, not allowing dashes everywhere, but only when an attribute begins with
data-. But I personally think that's not really necessary.Comment #3
wim leersBased on #2 and the simplicity of the patch, tentatively setting to RTBC.
Comment #4
jcisio commentedThat regex does not match "data-n9".
Comment #5
wim leers#4: are you sure that numeric characters are allowed?
Comment #6
jcisio commentedYes, if your quote #2 is correct.
After data-, any character that is XML-compatible and not A-Z is allowed. That means "data-n9" or even "data-n ͦ9" (well, we don't really need to support this case, I think) are both allowed.
Comment #7
wim leers#6: Hm, fair enough.
In that case, we can just use
[\w\-]+instead of[a-z\-]+(original:[a-z]+).Rerolled.
Comment #8
phoehne commentedStumbled across the same problem,
patch works perfect.
Thanks Peter
Comment #9
wim leersSetting to RTBC as per #8.
Comment #10
wim leersBump. quicksketch?
Comment #11
jcisio commentedI've just read #6 again, and it says A-Z are not allowed. I let you to decide change the issue to NW or leave it as RTBC, as we don't really have to follow specs.
Comment #13
ram4nd commentedComment #14
wim leersYay, thanks!