Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php final class PhabricatorCalendarEventExportController extends PhabricatorCalendarC..
Decoded Output download
<?php
final class PhabricatorCalendarEventExportController
extends PhabricatorCalendarController {
public function shouldAllowPublic() {
return true;
}
public function handleRequest(AphrontRequest $request) {
$viewer = $this->getViewer();
$id = $request->getURIData('id');
$event = id(new PhabricatorCalendarEventQuery())
->setViewer($viewer)
->withIDs(array($id))
->executeOne();
if (!$event) {
return new Aphront404Response();
}
if ($event->isChildEvent()) {
$target = $event->getParentEvent();
} else {
$target = $event;
}
return $this->newICSResponse(
$viewer,
$target->getICSFileName(),
array($target));
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhabricatorCalendarEventExportController
extends PhabricatorCalendarController {
public function shouldAllowPublic() {
return true;
}
public function handleRequest(AphrontRequest $request) {
$viewer = $this->getViewer();
$id = $request->getURIData('id');
$event = id(new PhabricatorCalendarEventQuery())
->setViewer($viewer)
->withIDs(array($id))
->executeOne();
if (!$event) {
return new Aphront404Response();
}
if ($event->isChildEvent()) {
$target = $event->getParentEvent();
} else {
$target = $event;
}
return $this->newICSResponse(
$viewer,
$target->getICSFileName(),
array($target));
}
}
Function Calls
None |
Stats
MD5 | 25ee4c839763cf47edadffa224b69c14 |
Eval Count | 0 |
Decode Time | 90 ms |