Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 114... Línea 114...
114
     */
114
     */
Línea 115... Línea 115...
115
 
115
 
116
    protected function entityCallback($matches)
116
    protected function entityCallback($matches)
117
    {
117
    {
118
        $entity = $matches[0];
118
        $entity = $matches[0];
119
        $hex_part = @$matches[1];
119
        $hex_part = isset($matches[1]) ? $matches[1] : null;
120
        $dec_part = @$matches[2];
120
        $dec_part = isset($matches[2]) ? $matches[2] : null;
121
        $named_part = empty($matches[3]) ? (empty($matches[4]) ? "" : $matches[4]) : $matches[3];
121
        $named_part = empty($matches[3]) ? (empty($matches[4]) ? "" : $matches[4]) : $matches[3];
122
        if ($hex_part !== NULL && $hex_part !== "") {
122
        if ($hex_part !== NULL && $hex_part !== "") {
123
            return HTMLPurifier_Encoder::unichr(hexdec($hex_part));
123
            return HTMLPurifier_Encoder::unichr(hexdec($hex_part));
124
        } elseif ($dec_part !== NULL && $dec_part !== "") {
124
        } elseif ($dec_part !== NULL && $dec_part !== "") {