summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-03-25 20:37:32 +0000
committerDries Buytaert <dries@buytaert.net>2004-03-25 20:37:32 +0000
commit76c4be3138da1bb3a3293902f2751ca9d5bd3209 (patch)
treeea4ec29a1497cb7880a573f4920bd237ab055834 /includes/common.inc
parent248a493d246b9a053ec9f348dddc6bfd41e46961 (diff)
downloadbrdo-76c4be3138da1bb3a3293902f2751ca9d5bd3209.tar.gz
brdo-76c4be3138da1bb3a3293902f2751ca9d5bd3209.tar.bz2
Patch 6523 by Steven:
- Strips the leading / from URLs to match with block paths. The reason is that everywhere else in Drupal, we use URLs without leading slash (e.g. URL aliasing). For consistency we should keep this behaviour everywhere. The replacement uses ereg_replace instead of str_replace, but the expression now only match the beginning of the URI so in fact it's faster, esp. for longer URIs. - Updates the block docs about path matching: gets rid of leading slash, adds initial matching operator '^' and emphasises the slash behaviour (which was not mentioned anywhere before) - Replaces the example expression for a negative match. It was horribly broken and odd, the replacement in this patch is correct and simpler.
Diffstat (limited to 'includes/common.inc')
0 files changed, 0 insertions, 0 deletions