From 0b25a25ad9e1d217a4ff8e061bea3f04dddcef36 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Tue, 12 Feb 2019 15:04:47 -0500 Subject: [PATCH] Fix quote replacement issues --- hooks/functions/example.php | 2 +- htdocs/login_form.php | 2 +- index.php | 2 +- lib/ds_ldap_pla.php | 2 +- tools/unserialize.php | 4 +++- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/hooks/functions/example.php b/hooks/functions/example.php index 1ba34da..ac5ed9d 100644 --- a/hooks/functions/example.php +++ b/hooks/functions/example.php @@ -399,4 +399,4 @@ function example_post_attr_delete() { return true; } add_hook('post_attr_delete','example_post_attr_delete'); -?> + diff --git a/htdocs/login_form.php b/htdocs/login_form.php index cca6f4c..c0c7a1b 100644 --- a/htdocs/login_form.php +++ b/htdocs/login_form.php @@ -64,7 +64,7 @@ if ($app['server']->getAuthType() == 'http') { if (get_request('redirect','GET',false,false)) { - printf('',rawurlencode(get_request('redirect', 'GET'))); } + printf('',rawurlencode(get_request('redirect', 'GET'))); } echo ''; diff --git a/index.php b/index.php index 716e607..e406216 100644 --- a/index.php +++ b/index.php @@ -8,4 +8,4 @@ # You should secure your PLA by making the htdocs/ your docroot. header('Location: htdocs/index.php'); die(); -?> + diff --git a/lib/ds_ldap_pla.php b/lib/ds_ldap_pla.php index 9b621b3..d46dc1b 100644 --- a/lib/ds_ldap_pla.php +++ b/lib/ds_ldap_pla.php @@ -728,7 +728,7 @@ class ldap_pla extends ldap { system_message(array( 'title' => _('Attribute value would not be unique'), - 'body' => sprintf('%s (%s)', + 'body' => sprintf('%s (%s)', _('This update has been or will be cancelled, it would result in an attribute value not being unique. You might like to search the LDAP server for the offending entry.'), htmlspecialchars($href), _('Search')), diff --git a/tools/unserialize.php b/tools/unserialize.php index 2a35e60..5397020 100644 --- a/tools/unserialize.php +++ b/tools/unserialize.php @@ -6,7 +6,9 @@ echo ''; @@ -23,4 +25,4 @@ echo ''; echo ''; echo ''; echo ''; -?> +