Bugzilla – Attachment 67271 Details for
Bug 16401
System preference staffClientBaseURL hardcoded to 'http://'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16401: (follow-up) Avoid changing empty staffClientBaseURL preference
Bug-16401-follow-up-Avoid-changing-empty-staffClie.patch (text/plain), 1.20 KB, created by
Katrin Fischer
on 2017-09-20 21:32:01 UTC
(
hide
)
Description:
Bug 16401: (follow-up) Avoid changing empty staffClientBaseURL preference
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2017-09-20 21:32:01 UTC
Size:
1.20 KB
patch
obsolete
>From d83fa50d08957400a5aba88ee33bb0138767edc0 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Wed, 20 Sep 2017 23:28:49 +0200 >Subject: [PATCH] Bug 16401: (follow-up) Avoid changing empty > staffClientBaseURL preference > >Adds a condition to check that the staffClientBaseUrl is not empty >before updating it with 'http://'. >--- > installer/data/mysql/atomicupdate/bug_16401.perl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_16401.perl b/installer/data/mysql/atomicupdate/bug_16401.perl >index 946953c46c..3f3492e1ee 100644 >--- a/installer/data/mysql/atomicupdate/bug_16401.perl >+++ b/installer/data/mysql/atomicupdate/bug_16401.perl >@@ -1,6 +1,6 @@ > $DBversion = 'XXX'; # will be replaced by the RM > if( CheckVersion( $DBversion ) ) { >- $dbh->do( "UPDATE systempreferences SET value = CONCAT('http://', value) WHERE variable = 'staffClientBaseURL' AND value NOT LIKE 'http%'" ); >+ $dbh->do( "UPDATE systempreferences SET value = CONCAT('http://', value) WHERE variable = 'staffClientBaseURL' AND value <> '' AND value NOT LIKE 'http%'" ); > > # Always end with this (adjust the bug info) > SetVersion( $DBversion ); >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16401
:
66025
|
66143
|
66712
|
67268
|
67269
|
67270
|
67271
|
67918
|
67919
|
67967