File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
FROM php:8.1-cli-alpine AS builder
2
2
3
- RUN apk add python3 py3-pip curl
3
+ RUN apk add python3 py3-rich curl
4
4
5
5
RUN curl -s https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer
6
6
7
7
RUN alias composer='php /usr/bin/composer'
8
8
9
- RUN pip install rich
10
-
11
9
COPY . /phpggc
12
10
13
11
WORKDIR /phpggc
14
12
15
- RUN chmod +x phpggc && echo "phar.readonly=0" > $PHP_INI_DIR/php.ini
13
+ RUN sed -i '1s|.*|#!/usr/bin/env php|' phpggc && chmod +x phpggc && echo "phar.readonly=0" > $PHP_INI_DIR/php.ini
16
14
17
15
ENTRYPOINT ["/phpggc/phpggc" ]
Original file line number Diff line number Diff line change @@ -431,11 +431,11 @@ protected function process_serialized($gc, $serialized)
431
431
$ serialized = base64_encode ($ serialized );
432
432
break ;
433
433
case 'url ' :
434
- $ serialized = urlencode ($ serialized );
434
+ $ serialized = rawurlencode ($ serialized );
435
435
break ;
436
436
case 'soft ' :
437
437
$ keys = str_split ("% \x00\n\r\t+; " );
438
- $ values = array_map ('urlencode ' , $ keys );
438
+ $ values = array_map ('rawurlencode ' , $ keys );
439
439
$ serialized = str_replace ($ keys , $ values , $ serialized );
440
440
break ;
441
441
case 'json ' :
You can’t perform that action at this time.
0 commit comments