Ref T9897. Adds a Parent Site and Parent Domain field to allow external sites to link back to parent.
Details
Details
- Reviewers
epriestley - Maniphest Tasks
- T9897: Unbeta Feedback on Phame
- Commits
- rP967945e4b4e9: Add ability to link back to parent site in external phame blogs
Set up `local.blog.phacility.com```, set parent site to "Phacility" and parent domain to "local.www.phacility.com". Get new crumbs at Blog and Post levels.
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Branch
- phame-site (branched from master)
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 12735 Build 16198: Run Core Tests Build 16197: arc lint + arc unit
Event Timeline
src/applications/phame/editor/PhameBlogEditEngine.php | ||
---|---|---|
105 | For consistency, prefer camelCase (parentSite). | |
113 | ...and here. | |
src/applications/phame/editor/PhameBlogEditor.php | ||
140 | Then ideally also validate the URI here to make sure it passes PhabricatorEnv::requireValidRemoteURIForLink($uri) before we let them save it. | |
src/applications/phame/storage/PhameBlog.php | ||
199–203 | I think this should just return whatever they entered (so we can link to https://, and a third-party can link to https://corporate.company.com/engineering/ from the "Engineering Blog") but check it first with this: PhabricatorEnv::requireValidRemoteURIForLink($raw_uri); That makes sure the user didn't enter javascript:do_evil(); as their parent domain. |
src/applications/phame/storage/PhameBlog.php | ||
---|---|---|
200 | We should validate this again here, just to be safe. This prevents these attacks:
|