Skip to content

Commit a72da4f

Browse files
committed
Merge branch 'master' of github.com:ambionics/phpggc
2 parents c5f8ce4 + 638a999 commit a72da4f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Dockerfile

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
FROM php:8.1-cli-alpine AS builder
22

3-
RUN apk add python3 py3-pip curl
3+
RUN apk add python3 py3-rich curl
44

55
RUN curl -s https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer
66

77
RUN alias composer='php /usr/bin/composer'
88

9-
RUN pip install rich
10-
119
COPY . /phpggc
1210

1311
WORKDIR /phpggc
1412

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
1614

1715
ENTRYPOINT ["/phpggc/phpggc"]

lib/PHPGGC.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -431,11 +431,11 @@ protected function process_serialized($gc, $serialized)
431431
$serialized = base64_encode($serialized);
432432
break;
433433
case 'url':
434-
$serialized = urlencode($serialized);
434+
$serialized = rawurlencode($serialized);
435435
break;
436436
case 'soft':
437437
$keys = str_split("%\x00\n\r\t+; ");
438-
$values = array_map('urlencode', $keys);
438+
$values = array_map('rawurlencode', $keys);
439439
$serialized = str_replace($keys, $values, $serialized);
440440
break;
441441
case 'json':

0 commit comments

Comments
 (0)