Revision 14336
Added by Aaron Marcuse-Kubitza over 10 years ago
username_prefix.php | ||
---|---|---|
36 | 36 |
# the website with the new value after the : |
37 | 37 |
$path = preg_replace('/([^.]*)~([^.]*)/', '$2$1', $path); |
38 | 38 |
|
39 |
# apply substitutions: x."_y@url -> x.x_y@url |
|
39 |
# apply substitutions: x."_y@url , x.""_y@url -> x.x_y@url
|
|
40 | 40 |
# these can be used when a table name is repeated in a column name |
41 |
$path = preg_replace('/(([^.]+)\.[^.]*)"/', '$1$2', $path); |
|
41 |
# "" is supported because Postgres doubles " to escape them |
|
42 |
$path = preg_replace('/(([^.]+)\.[^."]*)"{1,2}/', '$1$2', $path); |
|
42 | 43 |
|
43 | 44 |
return $path; |
44 | 45 |
} |
Also available in: Unified diff
web/username_prefix.php: substitutions: also support "" because Postgres doubles " to escape them