View | Details | Raw Unified | Return to bug 50286
Collapse All | Expand All

(-)jmeter-2.4.orig/src/protocol/http/org/apache/jmeter/protocol/http/modifier/URLRewritingModifier.java (-4 / +4 lines)
Lines 150-168 Link Here
150
    private void initRegex(String argName) {
150
    private void initRegex(String argName) {
151
        String quotedArg = Perl5Compiler.quotemeta(argName);// Don't get tripped up by RE chars in the arg name
151
        String quotedArg = Perl5Compiler.quotemeta(argName);// Don't get tripped up by RE chars in the arg name
152
        pathExtensionEqualsQuestionmarkRegexp = JMeterUtils.getPatternCache().getPattern(
152
        pathExtensionEqualsQuestionmarkRegexp = JMeterUtils.getPatternCache().getPattern(
153
                SEMI_COLON + quotedArg + "=([^\"'>&\\s;]*)[&\\s\"'>;]?$?", // $NON-NLS-1$
153
                SEMI_COLON + quotedArg + "=([^\"'<>&\\s;]*)[&\\s\"'>;]?$?", // $NON-NLS-1$
154
                Perl5Compiler.MULTILINE_MASK | Perl5Compiler.READ_ONLY_MASK);
154
                Perl5Compiler.MULTILINE_MASK | Perl5Compiler.READ_ONLY_MASK);
155
155
156
        pathExtensionEqualsNoQuestionmarkRegexp = JMeterUtils.getPatternCache().getPattern(
156
        pathExtensionEqualsNoQuestionmarkRegexp = JMeterUtils.getPatternCache().getPattern(
157
                SEMI_COLON + quotedArg + "=([^\"'>&\\s;?]*)[&\\s\"'>;?]?$?", // $NON-NLS-1$
157
                SEMI_COLON + quotedArg + "=([^\"'<>&\\s;?]*)[&\\s\"'>;?]?$?", // $NON-NLS-1$
158
                Perl5Compiler.MULTILINE_MASK | Perl5Compiler.READ_ONLY_MASK);
158
                Perl5Compiler.MULTILINE_MASK | Perl5Compiler.READ_ONLY_MASK);
159
159
160
        pathExtensionNoEqualsQuestionmarkRegexp = JMeterUtils.getPatternCache().getPattern(
160
        pathExtensionNoEqualsQuestionmarkRegexp = JMeterUtils.getPatternCache().getPattern(
161
                SEMI_COLON + quotedArg + "([^\"'>&\\s;]*)[&\\s\"'>;]?$?", // $NON-NLS-1$
161
                SEMI_COLON + quotedArg + "([^\"'<>&\\s;]*)[&\\s\"'>;]?$?", // $NON-NLS-1$
162
                Perl5Compiler.MULTILINE_MASK | Perl5Compiler.READ_ONLY_MASK);
162
                Perl5Compiler.MULTILINE_MASK | Perl5Compiler.READ_ONLY_MASK);
163
163
164
        pathExtensionNoEqualsNoQuestionmarkRegexp = JMeterUtils.getPatternCache().getPattern(
164
        pathExtensionNoEqualsNoQuestionmarkRegexp = JMeterUtils.getPatternCache().getPattern(
165
                SEMI_COLON + quotedArg + "([^\"'>&\\s;?]*)[&\\s\"'>;?]?$?", // $NON-NLS-1$
165
                SEMI_COLON + quotedArg + "([^\"'<>&\\s;?]*)[&\\s\"'>;?]?$?", // $NON-NLS-1$
166
                Perl5Compiler.MULTILINE_MASK | Perl5Compiler.READ_ONLY_MASK);
166
                Perl5Compiler.MULTILINE_MASK | Perl5Compiler.READ_ONLY_MASK);
167
167
168
        parameterRegexp = JMeterUtils.getPatternCache().getPattern(
168
        parameterRegexp = JMeterUtils.getPatternCache().getPattern(

Return to bug 50286