Revision 13710
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/web/username_prefix.php | ||
---|---|---|
12 | 12 |
# remove padding used to visually separate elements:__x__@y__@url -> x@y@url |
13 | 13 |
$path = preg_replace('/\b__|__\b/', '', $path); |
14 | 14 |
|
15 |
# remove any comment prefix: c:d:x@url -> x@url |
|
16 |
# *note*: when URL is used without http:// , you must include a non-letter |
|
17 |
# in the comment (eg. c_:x@url) to work in Firefox |
|
18 |
# to put the comment on a separate line when word-wrapping, use c-_:x@url |
|
19 |
# (the _ is needed to work in Google spreadsheets) |
|
20 |
$path = preg_replace('/^.*:/', '', $path); |
|
15 |
# remove comments: (c)x(d)@url -> x@url |
|
16 |
# can't use : for this because Firefox will not update the "password" for |
|
17 |
# the website with the new value after the : |
|
18 |
$path = preg_replace('/\(.*?\)/', '', $path); |
|
21 | 19 |
|
22 | 20 |
# translate reverse @-paths into forward .-paths |
23 | 21 |
$path = implode(".", array_reverse(explode("@", $path))); |
Also available in: Unified diff
bugfix: web/username_prefix.php: comments: need to use syntax that doesn't use : because Firefox will not update the "password" for the website with the new value after the : . the new syntax use () instead.