From f3f7a8f1f04e12179988a43dd4306b820c5916ef Mon Sep 17 00:00:00 2001 From: armsby Date: Tue, 15 Jul 2014 11:51:31 +0200 Subject: [PATCH] Update functions-html.php switched from urldecode to rawurldecode in line 464 as urldecode decode + sign in to space and invalidate the url rawurldecode does not --- includes/functions-html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions-html.php b/includes/functions-html.php index 0f61265..1a268e7 100644 --- a/includes/functions-html.php +++ b/includes/functions-html.php @@ -462,7 +462,7 @@ function yourls_table_edit_row( $keyword ) { %s:
%s: $www
%s:   RETURN; $return = preg_replace( '/%([^s])/', '%%$1', $return ); // make sprintf() safe: '%' -> '%%' - $return = sprintf( urldecode( $return ), yourls__( 'Long URL' ), yourls__( 'Short URL' ), yourls__( 'Title' ), yourls__( 'Save' ), yourls__( 'Save new values' ), yourls__( 'Cancel' ), yourls__( 'Cancel editing' ) ); + $return = sprintf( rawurldecode( $return ), yourls__( 'Long URL' ), yourls__( 'Short URL' ), yourls__( 'Title' ), yourls__( 'Save' ), yourls__( 'Save new values' ), yourls__( 'Cancel' ), yourls__( 'Cancel editing' ) ); } else { $return = '' . yourls__( 'Error, URL not found' ) . ''; } -- 2.45.0