View | Details | Raw Unified | Return to bug 207001
Collapse All | Expand All

(-)./Makefile (+1 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	jpgraph
4
PORTNAME=	jpgraph
5
PORTVERSION=	3.0.7
5
PORTVERSION=	3.0.7
6
PORTREVISION=	1
6
CATEGORIES=	graphics
7
CATEGORIES=	graphics
7
MASTER_SITES=	http://hem.bredband.net/jpgraph2/
8
MASTER_SITES=	http://hem.bredband.net/jpgraph2/
8
PKGNAMESUFFIX=	2
9
PKGNAMESUFFIX=	2
(-)./files/patch-src_jpgraph.php (+30 lines)
Line 0 Link Here
1
--- src/jpgraph.php.orig	2016-02-07 15:28:23 UTC
2
+++ src/jpgraph.php
3
@@ -1286,11 +1286,11 @@ class Graph {
4
         while( list($key,$value) = each($_GET) ) {
5
             if( is_array($value) ) {
6
                 foreach ( $value as $k => $v ) {
7
-                    $urlarg .= '&'.$key.'%5B'.$k.'%5D='.urlencode($v);
8
+                    $urlarg .= '&'.urlencode($key).'%5B'.urlencode($k).'%5D='.urlencode($v);
9
                 }
10
             }
11
             else {
12
-                $urlarg .= '&'.$key.'='.urlencode($value);
13
+                $urlarg .= '&'.urlencode($key).'='.urlencode($value);
14
             }
15
         }
16
 
17
@@ -1301,11 +1301,11 @@ class Graph {
18
         while( list($key,$value) = each($_POST) ) {
19
             if( is_array($value) ) {
20
                 foreach ( $value as $k => $v ) {
21
-                    $urlarg .= '&'.$key.'%5B'.$k.'%5D='.urlencode($v);
22
+                    $urlarg .= '&'.urlencode($key).'%5B'.urlencode($k).'%5D='.urlencode($v);
23
                 }
24
             }
25
             else {
26
-                $urlarg .= '&'.$key.'='.urlencode($value);
27
+                $urlarg .= '&'.urlencode($key).'='.urlencode($value);
28
             }
29
         }
30
 

Return to bug 207001