]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fix for ampersands getting HTML-escaped in URLs
authorSteve Clay <steve@mrclay.org>
Mon, 9 Apr 2012 21:06:47 +0000 (17:06 -0400)
committerSteve Clay <steve@mrclay.org>
Mon, 9 Apr 2012 21:06:47 +0000 (17:06 -0400)
actions/videolist/edit.php

index 1572d88ced3670f5394230a4fd47048b89d2871a..107cdc917a02ace3f5a95e298fd4c0e91c6743cb 100644 (file)
@@ -32,6 +32,8 @@ if(!$video_guid) {
                forward(REFERER);\r
        }\r
 \r
+    // get_input (htmlawed) "fixes" URLs by breaking them\r
+    $input['video_url'] = str_replace('&amp;', '&', $input['video_url']);\r
 \r
        $parsedPlatform = videolist_parse_url($input['video_url']);\r
 \r