Changeset View
Changeset View
Standalone View
Standalone View
resources/sql/autopatches/20141107.phriction.policy.2.php
Context not available. | |||||
$slug = $doc->getSlug(); | $slug = $doc->getSlug(); | ||||
$slug = PhabricatorSlug::normalize($slug); | $slug = PhabricatorSlug::normalize($slug); | ||||
$prefix = 'projects/'; | $prefix = 'projects/'; | ||||
if (($slug != $prefix) && (strncmp($slug, $prefix, strlen($prefix)) === 0)) { | if (($slug != $prefix) && (strncmp($slug, $prefix, @strlen($prefix)) === 0)) { | ||||
$parts = explode('/', $slug); | $parts = @explode('/', $slug); | ||||
$project_slug = $parts[1]; | $project_slug = $parts[1]; | ||||
$project_slug = PhabricatorSlug::normalizeProjectSlug($project_slug); | $project_slug = PhabricatorSlug::normalizeProjectSlug($project_slug); | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0