[wp-trac] [WordPress Trac] #36506: Duplicate directives in web.config after WordPress 4.5 installation on Windows
WordPress Trac
noreply at wordpress.org
Wed Apr 13 12:01:35 UTC 2016
#36506: Duplicate directives in web.config after WordPress 4.5 installation on
Windows
---------------------------+--------------------
Reporter: oneumyvakin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.5.1
Component: Rewrite Rules | Version: 4.5
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
---------------------------+--------------------
Comment (by JanR):
Replying to [comment:5 ocean90]:
> [attachment:misc.php.patch] looks good. What happens if I have an
existing install with the old rule and update to 4.5?
`iis7_add_rewrite_rule()` wouldn't find the old rule and the new one is
added as a duplicate rule with a different name?
>
> Can we make the query case insensitive so it matches `wordpress` and
`WordPress`?
Not easily, xPath 1.0 is not case sensitive, and lacks `to-lower` / `to-
upper` functions like xPath 2.0 has, so you need to work around that and
hack something together. Meaning a proper rewrite of the
`iis7_add_rewrite_rule()` function.
If someone's up for the job, some more information is available at
http://www.cowburn.info/2009/10/23/php-funcs-xpath/ and
http://codingexplained.com/coding/php/solving-xpath-case-sensitivity-with-
php
If @WiZZarD_ needs my help he knows where to find me :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36506#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list