1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 17:22:42 +01:00
phorge-phorge/src
vrana eeb7d517c2 Always match full path in URI Mapper
Summary:
I am not sure if it is by purpose but Phabricator now process paths like
https://secure.phabricator.com/D1681-so-freaking-cool.
The reason is that there are bunch of rules with missing '$' at the end.
This mistake is so common and easy to create that I've rather removed all '$'
and changed the way how the key is processed.
I am not absolutelly sure if the '$' was missing in some rules by purpose but if
it is the case then we should rather add explicit '.*'.
This change is backwards compatible with custom maps ending with '$'. It is not
compatible with paths not ending with '$' by purpose.

Test Plan:
Visit /, /differential/, /differential/stats/revisions/, /D1681.
Run before and after:

  ./aphrontpath.php D123
  ./aphrontpath.php D123-cool
  ./aphrontpath.php /
  ./aphrontpath.php differential
  ./aphrontpath.php differential/
  ./aphrontpath.php differential/stats/revisions/
  ./aphrontpath.php /file/data/x/PHID-FILE-y/z

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D1745
2012-03-01 15:27:03 -08:00
..
aphront Always match full path in URI Mapper 2012-03-01 15:27:03 -08:00
applications OAuthServer polish and random sauce 2012-03-01 14:46:18 -08:00
docs Support paste file uploads 2012-02-23 16:36:58 -08:00
infrastructure Added irc What's New support for audit functions 2012-02-29 12:13:56 -08:00
storage Simplify Aphront transaction code 2012-02-07 14:58:37 -08:00
view Improve Audit tool filters 2012-02-27 19:21:41 -08:00
__celerity_resource_map__.php Iterate on Maniphest reports 2012-03-01 14:19:11 -08:00
__phutil_library_init__.php Distinguish between aphront and phabricator. 2011-01-22 17:45:28 -08:00
__phutil_library_map__.php OAuthServer polish and random sauce 2012-03-01 14:46:18 -08:00