vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r17265: LJSV-1187: fix uri escaping.

Committer: vsukhanov
LJSV-1187: fix uri escaping.
U   trunk/cgi-bin/LJ/S2.pm
Modified: trunk/cgi-bin/LJ/S2.pm
===================================================================
--- trunk/cgi-bin/LJ/S2.pm	2010-09-02 07:16:24 UTC (rev 17264)
+++ trunk/cgi-bin/LJ/S2.pm	2010-09-02 08:42:00 UTC (rev 17265)
@@ -4233,7 +4233,9 @@
 
 sub Image__set_url {
     my ($ctx, $img, $newurl) = @_;
-    $img->{'url'} = LJ::eurl($newurl);
+    require URI;
+    my $uri = new URI($newurl);
+    $img->{'url'} = $uri->as_string;
 }
 
 sub ItemRange__url_of

Tags: livejournal, pm, vadvs
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 5 comments