sivasekar / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

Fix for GET params within links #55

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.export links with equal sign

What is the expected output? What do you see instead?

Get bad option error on PDFlib function

What version of the product are you using? On what operating system?

0.5.1 (nux)

Please provide any additional information below.

Fix :
file : /include/pdflib_adapter.cls.php (l:~723)
function : add_link
removed line : $url = str_replace("=", "%3D", rawurldecode($url));
changed lines (bad syntax):
$action = $this->_pdf->create_action("URI", "url {" . $url."}");
$this->_pdf->create_annotation($x, $y, $x + $width, $y + $height, 'Link',
"contents { $url } action {activate $action} linewidth=0");

Additional fix : allow spaces inside links
replace $url = str_replace("=", "%3D", rawurldecode($url));
by $url = str_replace(" ", "%20",rawurldecode($url));

Many thanks for your great work and have a nice day!

Original issue reported on code.google.com by tsa.te...@gmail.com on 11 Aug 2009 at 9:23

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 12 Aug 2009 at 6:21

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 30 May 2013 at 5:15