Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 688
Zeile 136... Zeile 136...
136
 
136
 
137
    /**
137
    /**
138
     * Decodes a quoted string.
138
     * Decodes a quoted string.
139
     *
139
     *
140
     * If passed an unquoted string that matches the "token" construct (as
140
     * If passed an unquoted string that matches the "token" construct (as
141
     * defined in the HTTP specification), it is passed through verbatimly.
141
     * defined in the HTTP specification), it is passed through verbatim.
142
     */
142
     */
143
    public static function unquote(string $s): string
143
    public static function unquote(string $s): string
144
    {
144
    {
145
        return preg_replace('/\\\\(.)|"/', '$1', $s);
145
        return preg_replace('/\\\\(.)|"/', '$1', $s);