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 PhabricatorRegexListConfigType extends PhabricatorTextListConfigType ..

Decoded Output download

<?php

final class PhabricatorRegexListConfigType
  extends PhabricatorTextListConfigType {

  const TYPEKEY = 'list<regex>';

  protected function validateStoredItem(
    PhabricatorConfigOption $option,
    $value) {

    $ok = @preg_match($value, '');
    if ($ok === false) {
      throw $this->newException(
        pht(
          'Option "%s" is of type "%s" and must be set to a list of valid '.
          'regular expressions, but "%s" is not a valid regular expression.',
          $option->getKey(),
          $this->getTypeKey(),
          $value));
    }
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorRegexListConfigType
  extends PhabricatorTextListConfigType {

  const TYPEKEY = 'list<regex>';

  protected function validateStoredItem(
    PhabricatorConfigOption $option,
    $value) {

    $ok = @preg_match($value, '');
    if ($ok === false) {
      throw $this->newException(
        pht(
          'Option "%s" is of type "%s" and must be set to a list of valid '.
          'regular expressions, but "%s" is not a valid regular expression.',
          $option->getKey(),
          $this->getTypeKey(),
          $value));
    }
  }

}

Function Calls

None

Variables

None

Stats

MD5 5f5baaebda9507faf369360f47abdec8
Eval Count 0
Decode Time 90 ms